summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/action.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/action.cpp b/src/action.cpp
index 9a06697..2e33491 100644
--- a/src/action.cpp
+++ b/src/action.cpp
@@ -601,13 +601,14 @@ CompAction::buttonToString ()
CompString
CompAction::edgeMaskToString ()
{
- CompString edge = "";
+ CompString edge;
for (int i = 0; i < SCREEN_EDGE_NUM; i++)
{
if (priv->edgeMask & (1 << i))
{
- edge += " | ";
+ if (!edge.empty ())
+ edge += " | ";
edge += edgeToString (i);
}