From 916a3d76da98d078a807044c43d1a70bc146ba70 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Dec 2017 01:55:25 +0300 Subject: Remove default parameters from speechbubble. --- src/being/being.cpp | 4 +++- src/gui/popups/speechbubble.h | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/being/being.cpp b/src/being/being.cpp index 769c0d93f..d51b45fbd 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -656,7 +656,9 @@ void Being::setSpeech(const std::string &restrict text) restrict2 createSpeechBubble(); if (mSpeechBubble != nullptr) { - mSpeechBubble->setCaption(isShowName ? mName : ""); + mSpeechBubble->setCaption(isShowName ? mName : "", + &theme->getColor(ThemeColorId::BUBBLE_NAME, 255), + &theme->getColor(ThemeColorId::BUBBLE_NAME_OUTLINE, 255)); mSpeechBubble->setText(mSpeech, isShowName); } } diff --git a/src/gui/popups/speechbubble.h b/src/gui/popups/speechbubble.h index 694a6eb2a..bd8b79cf4 100644 --- a/src/gui/popups/speechbubble.h +++ b/src/gui/popups/speechbubble.h @@ -45,15 +45,14 @@ class SpeechBubble final : public Popup * Sets the name displayed for the speech bubble, and in what color. */ void setCaption(const std::string &name, - const Color *const color1 = &theme->getColor( - ThemeColorId::BUBBLE_NAME, 255), - const Color *const color2 = &theme->getColor( - ThemeColorId::BUBBLE_NAME_OUTLINE, 255)); + const Color *const color1, + const Color *const color2); /** * Sets the text to be displayed. */ - void setText(const std::string &text, const bool showName = true); + void setText(const std::string &text, + const bool showName); void requestMoveToBackground(); -- cgit v1.2.3-60-g2f50