summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-07 17:55:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-07 21:38:21 +0300
commitffeffa2314dbe03e0ced58e0c465760b54908690 (patch)
tree3da4d65e43a4b55aed7c01ec612c9dec50d1bd1c /src/gui/widgets
parentae550d179c25e149f7e8a8d70011b364fb0d85d6 (diff)
downloadmv-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.gz
mv-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.bz2
mv-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.xz
mv-ffeffa2314dbe03e0ced58e0c465760b54908690.zip
fix cide style.
Add explicit keyword to some constructors.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/chattab.cpp2
-rw-r--r--src/gui/widgets/guildchattab.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index 9d936755c..fc3e4e69f 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -459,9 +459,9 @@ int ChatTab::getType() const
void ChatTab::addRow(std::string &line)
{
- size_t idx = 0;
if (line.find("[@@http") == std::string::npos)
{
+ size_t idx = 0;
for (size_t f = 0; f < line.length(); f++)
{
if (line.at(f) == ' ')
diff --git a/src/gui/widgets/guildchattab.h b/src/gui/widgets/guildchattab.h
index c1605495d..6daada229 100644
--- a/src/gui/widgets/guildchattab.h
+++ b/src/gui/widgets/guildchattab.h
@@ -31,7 +31,7 @@
class GuildChatTab final : public ChatTab, public ConfigListener
{
public:
- GuildChatTab(const Widget2 *const widget);
+ explicit GuildChatTab(const Widget2 *const widget);
A_DELETE_COPY(GuildChatTab)