Skip to content

Commit a145c66

Browse files
committed
clean up
1 parent 1c9d0e6 commit a145c66

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/netlicensing/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace netlicensing {
3131
static const char* const HIDDEN = "hidden";
3232

3333
//Utility
34-
static const std::string UTILITY_ENDPOINT_PATH = "utility";
34+
static const char* const UTILITY_ENDPOINT_PATH = "utility";
3535
static const char* const ENDPOINT_PATH_LICENSE_TYPES = "licenseTypes";
3636
static const char* const ENDPOINT_PATH_LICENSING_MODELS = "licensingModels";
3737
static const char* const ENDPOINT_PATH_COUNTRIES = "countries";

include/netlicensing/service.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ template<> inline std::string endpoint<PaymentMethod>() { return std::string(PAY
1818
template<> inline std::string endpoint<Token>() { return std::string(TOKEN_ENDPOINT_PATH); }
1919
template<> inline std::string endpoint<Transaction>() { return std::string(TRANSACTION_ENDPOINT_PATH); }
2020
template<> inline std::string endpoint<Country>() { return std::string(UTILITY_ENDPOINT_PATH) + "/" +std::string(ENDPOINT_PATH_COUNTRIES); }
21-
template<> inline std::string endpoint<LicensingModel>() { return UTILITY_ENDPOINT_PATH + "/" + std::string(ENDPOINT_PATH_LICENSING_MODELS); }
22-
template<> inline std::string endpoint<LicenseType>() { return UTILITY_ENDPOINT_PATH + "/" + std::string(ENDPOINT_PATH_LICENSE_TYPES); }
21+
template<> inline std::string endpoint<LicensingModel>() { return std::string(UTILITY_ENDPOINT_PATH) + "/" + std::string(ENDPOINT_PATH_LICENSING_MODELS); }
22+
template<> inline std::string endpoint<LicenseType>() { return std::string(UTILITY_ENDPOINT_PATH) + "/" + std::string(ENDPOINT_PATH_LICENSE_TYPES); }
2323

2424
template<typename M>
2525
void getEntity(Context& ctx, M& mapper, const std::string& number) {

0 commit comments

Comments
 (0)