-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce code deprecation and virtual methods #1629
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2781e98
Define `__deprecated` macro and use to ensure framework builds withou…
mikee47 105ca0a
Apply `override` directive to inherited virtual methods.
mikee47 52689ef
Fix sample build errors
mikee47 4bb4b7f
Code into headers, revise deprecation comments, delegates should defa…
mikee47 1fb812a
Fix doxygen comments, tidy #includes, code into headers, remove rednd…
mikee47 d327bcf
Reduce sample applications `#include <SmingCore/*>` to `#include <*>`
mikee47 5376197
Fix build error
mikee47 3e1bbfc
Review changes
mikee47 ccf1165
A few __forceinline changes, `HttpRequestAuth` code into header
mikee47 b18982a
Fix codacy advisories, deprecate HttpRequest copy operator
mikee47 9205b48
Remove warning from HttpRequest copy constructor and document instead
mikee47 522c32e
Add missing virtual -> override changes
mikee47 48382df
Remove comment code from default parameters
mikee47 bad0056
Code into header (HttpServerConnection)
mikee47 eda362a
Revert `ReadWriteStream::write(const uint8_t*, size_t)` to pure virtu…
mikee47 2d6dce1
Codacy advisories
mikee47 e425e8b
Revert changes related to HashMap copying (HttpHeaders, HttpRequest) …
mikee47 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,22 +20,25 @@ class HttpRequest; | |
class AuthAdapter | ||
{ | ||
public: | ||
virtual void setRequest(HttpRequest* request) = 0; | ||
|
||
__forceinline virtual void setResponse(HttpResponse* response) | ||
virtual ~AuthAdapter() | ||
{ | ||
return; | ||
} | ||
|
||
virtual ~AuthAdapter() | ||
virtual void setRequest(HttpRequest* request) = 0; | ||
|
||
virtual void setResponse(HttpResponse* response) | ||
{ | ||
} | ||
}; | ||
|
||
class HttpBasicAuth : public AuthAdapter | ||
{ | ||
public: | ||
HttpBasicAuth(const String& username, const String& password); | ||
HttpBasicAuth(const String& username, const String& password) | ||
{ | ||
this->username = username; | ||
this->password = password; | ||
} | ||
|
||
void setRequest(HttpRequest* request); | ||
|
||
|
@@ -47,9 +50,16 @@ class HttpBasicAuth : public AuthAdapter | |
class HttpDigestAuth : public AuthAdapter | ||
{ | ||
public: | ||
HttpDigestAuth(const String& username, const String& password); | ||
HttpDigestAuth(const String& username, const String& password) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here too: variables in initialization list |
||
{ | ||
this->username = username; | ||
this->password = password; | ||
} | ||
|
||
void setRequest(HttpRequest* request); | ||
void setRequest(HttpRequest* request) | ||
{ | ||
this->request = request; | ||
} | ||
|
||
void setResponse(HttpResponse* response); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mikee47 You can initialize the variables in initialization list