summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2016-01-18 14:39:12 +0100
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2016-01-18 14:39:12 +0100
commit07461be382cb5760505cd7d6fc985941491d8bf2 (patch)
tree7e2ae742590d8d3886d70f7ef523d2bdb12a7b18
parent4229b122f28454baf1b1726b553399f26b199808 (diff)
downloadglibmm-07461be382cb5760505cd7d6fc985941491d8bf2.tar.gz
Glib::ustring fix gcc 6 warning in public header
Avoid a warning when compiling with gcc 6 with -Wmisleading-indentation. Bug #760641.
-rw-r--r--glib/glibmm/ustring.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/glib/glibmm/ustring.h b/glib/glibmm/ustring.h
index 528a5369..ccbb103f 100644
--- a/glib/glibmm/ustring.h
+++ b/glib/glibmm/ustring.h
@@ -1004,7 +1004,8 @@ const ustring_Iterator<T> ustring_Iterator<T>::operator++(int)
template <class T> inline
ustring_Iterator<T>& ustring_Iterator<T>::operator--()
{
- do --pos_; while((static_cast<unsigned char>(*pos_) & 0xC0u) == 0x80);
+ while ((static_cast<unsigned char>(*--pos_) & 0xC0u) == 0x80)
+ ;
return *this;
}