aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/TypePrettyPrinter.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-08-29 14:00:18 +0200
committerhjk <hjk121@nokiamail.com>2014-09-04 14:50:00 +0200
commite2584f69d446a846fa712081322f2988ac3d5bc8 (patch)
tree9f601f99959b71384890beaf361844afcd7486cc /src/libs/cplusplus/TypePrettyPrinter.cpp
parentd4a7505a181d0147b0151a18eca266ed35e26c4e (diff)
Replace QLatin1String("x") with QLatin1Char('x') where possible
Change-Id: I2f90c8ae7b5e968b9de882833f8661ab540a9232 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/libs/cplusplus/TypePrettyPrinter.cpp')
-rw-r--r--src/libs/cplusplus/TypePrettyPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/cplusplus/TypePrettyPrinter.cpp b/src/libs/cplusplus/TypePrettyPrinter.cpp
index ac3f62fb12..94a09124ba 100644
--- a/src/libs/cplusplus/TypePrettyPrinter.cpp
+++ b/src/libs/cplusplus/TypePrettyPrinter.cpp
@@ -320,7 +320,7 @@ void TypePrettyPrinter::prependSpaceBeforeIndirection(const FullySpecifiedType &
const bool elementIsConstPointerOrReference = elementTypeIsPointerOrReference && type.isConst();
const bool shouldBindToLeftSpecifier = _overview->starBindFlags & Overview::BindToLeftSpecifier;
if (elementIsConstPointerOrReference && ! shouldBindToLeftSpecifier)
- _text.prepend(QLatin1String(" "));
+ _text.prepend(QLatin1Char(' '));
}
void TypePrettyPrinter::prependSpaceAfterIndirection(bool hasName)
@@ -340,7 +340,7 @@ void TypePrettyPrinter::prependSpaceAfterIndirection(bool hasName)
const bool case3 = ! hasCvSpecifier && ! shouldBindToIdentifier
&& ! _isIndirectionToArrayOrFunction && _text.size() && _text.at(0).isLetter();
if (case1 || case2 || case3)
- _text.prepend(QLatin1String(" "));
+ _text.prepend(QLatin1Char(' '));
}
void TypePrettyPrinter::visit(PointerType *type)