summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Leuenberger <dimstar@opensuse.org>2010-09-29 08:46:46 +0200
committerScott Moreau <oreaus@gmail.com>2010-09-29 00:55:01 -0600
commit246cfdb98b6724ff4d9791f853cb65a7777104c9 (patch)
tree988921f7730ca47b898258a488faa5ec5de2ebd6
parent04f35ed618ba9875a79da541e516ad84030a1a0a (diff)
downloadelements-246cfdb98b6724ff4d9791f853cb65a7777104c9.tar.gz
elements-246cfdb98b6724ff4d9791f853cb65a7777104c9.tar.bz2
Sequence point fixups. Silences compiler warnings.
-rw-r--r--src/elements.cpp2
-rw-r--r--src/osd.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/elements.cpp b/src/elements.cpp
index 99ecc53..08c8db9 100644
--- a/src/elements.cpp
+++ b/src/elements.cpp
@@ -406,7 +406,7 @@ PrivateElementScreen::switchTimeout ()
if (!text->eTextures.empty ())
{
text->nTexture =
- ++text->nTexture %
+ (text->nTexture + 1) %
(text->eTextures.size ());
}
}
diff --git a/src/osd.cpp b/src/osd.cpp
index f501a89..c247814 100644
--- a/src/osd.cpp
+++ b/src/osd.cpp
@@ -325,7 +325,7 @@ PrivateElementScreen::removeText ()
bool
ElementsTextSurface::switchTextures ()
{
- nTexture = ++nTexture % (eTextures.size ());
+ nTexture = (nTexture + 1) % (eTextures.size ());
ElementScreen::get (screen)->priv->cScreen->damageScreen ();
return true;