Skip to content

Commit

Permalink
gcc warnings cleanup; hard-coded licensee number changed to existing
Browse files Browse the repository at this point in the history
  • Loading branch information
kkorotkov committed Oct 11, 2016
1 parent d08c419 commit 426c5d5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
5 changes: 3 additions & 2 deletions client_demo/netlicensing_client_demo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
#include <ctime>
#include <sstream>
#include "netlicensing/netlicensing.h"
#include "netlicensing/constants.h"

int main(int argc, char* argv[]) {
using namespace netlicensing;
std::string licensee_number = "I5-DEMO";

std::string licensee_number = "IR2Q7A5P3";
if (argc > 1) {
licensee_number = argv[1];
}
Expand Down
48 changes: 25 additions & 23 deletions include/netlicensing/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,29 @@
#include <string>

namespace netlicensing {
static const char* ID = "id";
static const char* ACTIVE = "active";
static const char* NUMBER = "number";
static const char* NAME = "name";
static const char* VERSION = "version";
static const char* LICENSEE_AUTOCREATE = "licenseeAutoCreate";
static const char* DESCRIPTION = "description";
static const char* LICENSING_INFO = "licensingInfo";
static const char* DELETED = "deleted";
static const char* CASCADE = "forceCascade";
static const char* PRICE = "price";
static const char* DISCOUNT = "discount";
static const char* CURRENCY = "currency";
static const char* IN_USE = "inUse";
static const char* FILTER = "filter";
static const char* BASE_URL = "baseUrl";
static const char* USERNAME = "username";
static const char* PASSWORD = "password";
static const char* SECURITY_MODE = "securityMode";
static const char* PROP_ID = "ID";
static const char* PROP_TTL = "TTL";
}

#endif //__CONSTANTS_H__
static const char* const ID = "id";
static const char* const ACTIVE = "active";
static const char* const NUMBER = "number";
static const char* const NAME = "name";
static const char* const VERSION = "version";
static const char* const LICENSEE_AUTOCREATE = "licenseeAutoCreate";
static const char* const DESCRIPTION = "description";
static const char* const LICENSING_INFO = "licensingInfo";
static const char* const DELETED = "deleted";
static const char* const CASCADE = "forceCascade";
static const char* const PRICE = "price";
static const char* const DISCOUNT = "discount";
static const char* const CURRENCY = "currency";
static const char* const IN_USE = "inUse";
static const char* const FILTER = "filter";
static const char* const BASE_URL = "baseUrl";
static const char* const USERNAME = "username";
static const char* const PASSWORD = "password";
static const char* const SECURITY_MODE = "securityMode";
static const char* const PROP_ID = "ID";
static const char* const PROP_TTL = "TTL";

} // namespace netlicensing

#endif // __CONSTANTS_H__

0 comments on commit 426c5d5

Please sign in to comment.