diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:46:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:46:48 +0300 |
commit | 6d4da51f0fdcecc2d4398f60dbca43f499fdbe16 (patch) | |
tree | c71c7c6e49ed36a55c6b6a2b1ba70073300634dd /src/gui/widgets/browserbox.cpp | |
parent | 4125ac707288a244a7175b755d74dd963e762f56 (diff) | |
download | mv-6d4da51f0fdcecc2d4398f60dbca43f499fdbe16.tar.gz mv-6d4da51f0fdcecc2d4398f60dbca43f499fdbe16.tar.bz2 mv-6d4da51f0fdcecc2d4398f60dbca43f499fdbe16.tar.xz mv-6d4da51f0fdcecc2d4398f60dbca43f499fdbe16.zip |
Fix code style in gui.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 2696bcdbc..25b5444fc 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -289,7 +289,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop) // discard older rows when a row limit has been set if (mMaxRows > 0 && !mTextRows.empty()) { - while (mTextRows.size() > mMaxRows) + while (mTextRows.size() > static_cast<size_t>(mMaxRows)) { mTextRows.pop_front(); int cnt = mTextRowLinksCount.front(); @@ -740,7 +740,7 @@ int BrowserBox::calcHeight() if (mEmotes) { const size_t sz = mEmotes->size(); - if (static_cast<unsigned>(cid) < sz) + if (static_cast<size_t>(cid) < sz) { Image *const img = mEmotes->get(cid); if (img) |