Skip to content

Commit c706d8f

Browse files
Fix various style warnings (#830)
* Fix various style warnings Fix cpplint warnings in categories: * readability/inheritance * whitespace/end_of_line * whitespace/blank_line * whitespace/semicolon * whitespace/operators * build/header_guard * build/storage_class * whitespace/ending_newline * whitespace/indent * whitespace/newline * legal/copyright Relates-To: OLPEDGE-1909 Signed-off-by: Mykhailo Kuchma <ext-mykhailo.kuchma@here.com>
1 parent 8417818 commit c706d8f

File tree

51 files changed

+187
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+187
-113
lines changed

cmake/android/tester/app/jni/com_here_android_olp_TesterActivity.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* License-Filename: LICENSE
1818
*/
1919

20+
#pragma once
21+
2022
/* DO NOT EDIT THIS FILE - it is machine generated */
2123
#include <jni.h>
2224
/* Header for class com_here_android_olp_TesterActivity */

cmake/ios/tester/AppDelegate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* License-Filename: LICENSE
1818
*/
1919

20+
#pragma once
21+
2022
#import <UIKit/UIKit.h>
2123

2224
@interface AppDelegate : UIResponder <UIApplicationDelegate>

cmake/ios/tester/MyViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* License-Filename: LICENSE
1818
*/
1919

20+
#pragma once
21+
2022
#import <UIKit/UIKit.h>
2123

2224
@interface MyViewController : UIViewController

examples/ios/AppDelegate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* License-Filename: LICENSE
1818
*/
1919

20+
#pragma once
21+
2022
#import <UIKit/UIKit.h>
2123

2224
@interface AppDelegate : UIResponder<UIApplicationDelegate>

examples/ios/ViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* License-Filename: LICENSE
1818
*/
1919

20+
#pragma once
21+
2022
#import <UIKit/UIKit.h>
2123

2224
@interface ViewController : UIViewController

examples/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ int RunExamples(const AccessKey& access_key, int examples_to_run,
208208
}
209209

210210
int main(int argc, char** argv) {
211-
AccessKey access_key{}; // You can specify your here.access.key.id
211+
AccessKey access_key{}; // You can specify your here.access.key.id
212212
// and here.access.key.secret
213213
std::string catalog; // the HRN of the catalog to which you to publish data
214214
std::string layer_id; // the of the layer inside the catalog to which you

olp-cpp-sdk-authentication/include/olp/authentication/IntrospectAppResult.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class AUTHENTICATION_API IntrospectAppResult {
115115
* @param scopes The list of strings representing the scopes.
116116
*/
117117
void SetAllowedScopes(std::vector<std::string> scopes) {
118-
allowed_scopes_= std::move(scopes);
118+
allowed_scopes_ = std::move(scopes);
119119
}
120120

121121
/**
@@ -151,7 +151,7 @@ class AUTHENTICATION_API IntrospectAppResult {
151151
* @param reason The token endpoint authentication reason.
152152
*/
153153
void SetTokenEndpointAuthMethodReason(std::string reason) {
154-
token_endpoint_auth_method_reason_= std::move(reason);
154+
token_endpoint_auth_method_reason_ = std::move(reason);
155155
}
156156

157157
/**
@@ -327,6 +327,7 @@ class AUTHENTICATION_API IntrospectAppResult {
327327
* @param hrn The application HRN.
328328
*/
329329
void SetHrn(std::string hrn) { hrn_ = std::move(hrn); }
330+
330331
private:
331332
std::string client_id_;
332333
std::string name_;

olp-cpp-sdk-authentication/src/SignInResult.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,11 @@ time_t SignInResult::GetExpiryTime() const { return impl_->GetExpiryTime(); }
5757
const std::string& SignInResult::GetUserIdentifier() const {
5858
return impl_->GetUserIdentifier();
5959
}
60-
61-
std::chrono::seconds SignInResult::GetExpiresIn() const
62-
{
63-
return impl_->GetExpiresIn();
60+
61+
std::chrono::seconds SignInResult::GetExpiresIn() const {
62+
return impl_->GetExpiresIn();
6463
}
65-
64+
6665
const std::string& SignInResult::GetScope() const { return impl_->GetScope(); }
6766

6867
SignInResult::SignInResult(std::shared_ptr<SignInResultImpl> impl)

olp-cpp-sdk-authentication/src/SignInResultImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class SignInResultImpl : public BaseResult {
9393
std::string token_type_;
9494
time_t expiry_time_;
9595
std::chrono::seconds expires_in_;
96-
96+
9797
std::string refresh_token_;
9898
std::string user_identifier_;
9999
std::string scope_;

olp-cpp-sdk-core/include/olp/core/logging/FileAppender.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CORE_API FileAppender : public IAppender {
4343
explicit FileAppender(
4444
const std::string& fileName, bool append = false,
4545
MessageFormatter formatter = MessageFormatter::createDefault());
46-
virtual ~FileAppender() override;
46+
~FileAppender() override;
4747

4848
/**
4949
* @brief Returns whether or not the stream is opened and can be written to.

0 commit comments

Comments
 (0)