Skip to content

Commit 63b2884

Browse files
committed
Cleanup / formatting
1 parent 4592db5 commit 63b2884

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ file(GLOB sources src/*.cc)
3434
add_library(netlicensing ${headers} ${sources})
3535
target_link_libraries(netlicensing ${LIBS})
3636

37-
# demo client
38-
file(GLOB client_demo_headers client_demo/${db2lp_component}/*h)
39-
file(GLOB client_demo_sources client_demo/${db2lp_component}/*cc)
37+
# client demo
38+
file(GLOB client_demo_headers client_demo/*h)
39+
file(GLOB client_demo_sources client_demo/*cc)
4040
add_executable(netlicensing-client-demo ${client_demo_headers} ${client_demo_sources})
4141
target_link_libraries(netlicensing-client-demo netlicensing ${LIBS})
4242

include/netlicensing/context.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
namespace netlicensing {
77

88
/**
9-
* @brief Configure your connection to rest server using this Context class
10-
*
11-
*/
9+
* @brief Configure your connection to rest server using this Context class
10+
*
11+
*/
1212
class Context {
1313
public:
1414
enum SecurityMode {
1515
BASIC_AUTHENTICATION,
1616
APIKEY_IDENTIFICATION,
1717
ANONYMOUS_IDENTIFICATION
1818
};
19-
19+
2020
Context();
2121
~Context();
2222

@@ -58,7 +58,7 @@ extern std::string url_with_parameters(const std::string& url, const parameters_
5858

5959
/**
6060
* @brief returns url encoded string
61-
*/
61+
*/
6262
extern std::string escape_string(const std::string& s);
6363
}
6464

include/netlicensing/service.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void list(Context& ctx, M& mapper, const std::string& filter) {
8282
long http_code;
8383
std::string res = ctx.get(endpoint<typename M::Item_t>(), params, http_code);
8484
traverse(mapper, res);
85-
85+
8686
// TODO(a-pavlov) fix code checking
8787
if (http_code != 200) {
8888
throw RestException(mapper.getInfos(), http_code);

include/netlicensing/validation_result.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Composition {
1717
public:
1818
Composition() : value_i() { }
1919
Composition(const std::string& value) : value_i(std::make_shared<std::string>(value)) { }
20-
20+
2121
std::shared_ptr<std::string> getValue() const { return value_i; }
2222

2323
const std::map<std::string, Composition>& getProperties() {
@@ -31,7 +31,7 @@ class Composition {
3131
void put(const std::string& name, const Composition& value) {
3232
properties_i.insert(std::make_pair(name, value));
3333
}
34-
34+
3535
std::shared_ptr<std::string> get(const std::string& name) const {
3636
auto prop = properties_i.find(name);
3737
if (prop == properties_i.end()) {
@@ -53,7 +53,7 @@ class ValidationResult {
5353

5454
public:
5555
ValidationResult() { }
56-
56+
5757

5858
const std::map<std::string, Composition>& getValidations() {
5959
return validations_i;
@@ -75,7 +75,7 @@ class ValidationResult {
7575
}
7676
return validation->second;
7777
}
78-
78+
7979
void setProductModuleValidation(const std::string& productModuleNumber,
8080
const Composition& productModuleValidation) {
8181
validations_i.insert(std::make_pair(productModuleNumber, productModuleValidation));

0 commit comments

Comments
 (0)