-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
refactor: make a single MessageBuilder #5548
Merged
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6c857d5
refactor: merge Twitch/SharedMessageBuilder into MessageBuilder
pajlada baa5005
refactor MessageBuilder::liveMessage
pajlada 8f4b481
refactor MessageBuilder::liveSystemMessage
pajlada dcd2b3e
refactor MessageBuilder::offlineSystemMessage
pajlada 9b247e6
refactor MessageBuilder::hostingSystemMessage
pajlada 79ec26c
refactor MessageBuilder::listOfUsersSystemMEssage
pajlada b72229d
refactor MessageBuilder::deletionMessage (irc variant)
pajlada 12e96a0
refactor MessageBuilder::deletionMessage (pubsub variant)
pajlada 7569d4a
refactor MessageBuilder::appendChannelPointRewardMessage
pajlada 397997f
actually MessageBuilder can be public
pajlada 706d051
Combine `makeLiveMessage` and `makeLiveSystemMessage` into one function
pajlada cba4588
remove clang-format off section from messagebuilder
pajlada 4fc7389
Further refactor `makeListOfUsersMessage`
pajlada 49ab140
fix benchmarks
pajlada 71dbc4e
Merge remote-tracking branch 'origin/master' into refactor/message-bu…
pajlada 5055361
add changelog entry
pajlada 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
#include "controllers/highlights/HighlightController.hpp" | ||
#include "controllers/highlights/HighlightPhrase.hpp" | ||
#include "messages/Message.hpp" | ||
#include "messages/SharedMessageBuilder.hpp" | ||
#include "messages/MessageBuilder.hpp" | ||
#include "mocks/BaseApplication.hpp" | ||
#include "singletons/Settings.hpp" | ||
#include "util/Helpers.hpp" | ||
|
@@ -16,15 +16,16 @@ | |
|
||
using namespace chatterino; | ||
|
||
class BenchmarkMessageBuilder : public SharedMessageBuilder | ||
class BenchmarkMessageBuilder : public MessageBuilder | ||
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. warning: destructor of 'BenchmarkMessageBuilder' is public and non-virtual [cppcoreguidelines-virtual-class-destructor] class BenchmarkMessageBuilder : public MessageBuilder
^ Additional contextbenchmarks/src/Highlights.cpp:18: make it public and virtual class BenchmarkMessageBuilder : public MessageBuilder
^ |
||
{ | ||
public: | ||
explicit BenchmarkMessageBuilder( | ||
Channel *_channel, const Communi::IrcPrivateMessage *_ircMessage, | ||
const MessageParseArgs &_args) | ||
: SharedMessageBuilder(_channel, _ircMessage, _args) | ||
: MessageBuilder(_channel, _ircMessage, _args) | ||
{ | ||
} | ||
|
||
virtual MessagePtr build() | ||
{ | ||
// PARSE | ||
|
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
warning: destructor of 'BenchmarkMessageBuilder' is public and non-virtual [cppcoreguidelines-virtual-class-destructor]
Additional context
benchmarks/src/Highlights.cpp:18: make it public and virtual