summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-08-24 17:34:35 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-08-24 17:34:35 (GMT)
commit00cece9fa534c10f7e6fcc54838b81e6ef2469b6 (patch)
tree85a9f84c0a9ace52a7bfefc19c4faab474d756d4
parent64efed1e3ba2c645e3d322ff846901019e0b0f20 (diff)
No need to construct string of whitespaces manually
-rw-r--r--src/lib/marble/RenderState.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/marble/RenderState.cpp b/src/lib/marble/RenderState.cpp
index 2fb5eb4..288a0d1 100644
--- a/src/lib/marble/RenderState.cpp
+++ b/src/lib/marble/RenderState.cpp
@@ -115,10 +115,7 @@ RenderStatus RenderState::Private::minimumStatus( RenderStatus a, RenderStatus b
QString RenderState::Private::toString( const RenderState &state, int level ) const
{
QString const prefix = level > 0 ? "\n" : "";
- QString indent;
- for ( int i=0; i<level; ++i ) {
- indent += " ";
- }
+ QString const indent(level*2, QLatin1Char(' '));
QString status;
switch ( state.status() ) {
case Marble::Complete: status = "Complete"; break;