summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/pdf417
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-14 14:54:57 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-14 14:54:57 -0700
commitff242e0b62173718a6e98aee1306ac48f6372572 (patch)
treeee6e92036ea2d7b7d5525e0dc236e6f31a221eb6 /xfa/fxbarcode/pdf417
parent8e4c505ff6d82263183e9f812fcc7b45c1414f15 (diff)
downloadpdfium-ff242e0b62173718a6e98aee1306ac48f6372572.tar.xz
Avoid needless construction of CFX_ByteStrings during string building
There are perfectly fine operators for adding to an existing string without first duplicating the arguments. Review URL: https://codereview.chromium.org/1891953002
Diffstat (limited to 'xfa/fxbarcode/pdf417')
-rw-r--r--xfa/fxbarcode/pdf417/BC_PDF417DetectionResultRowIndicatorColumn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxbarcode/pdf417/BC_PDF417DetectionResultRowIndicatorColumn.cpp b/xfa/fxbarcode/pdf417/BC_PDF417DetectionResultRowIndicatorColumn.cpp
index bdcd91052c..3a6d73fd40 100644
--- a/xfa/fxbarcode/pdf417/BC_PDF417DetectionResultRowIndicatorColumn.cpp
+++ b/xfa/fxbarcode/pdf417/BC_PDF417DetectionResultRowIndicatorColumn.cpp
@@ -222,7 +222,7 @@ FX_BOOL CBC_DetectionResultRowIndicatorColumn::isLeft() {
return m_isLeft;
}
CFX_ByteString CBC_DetectionResultRowIndicatorColumn::toString() {
- return (CFX_ByteString) "IsLeft: " + (CFX_ByteString)m_isLeft + '\n' +
+ return CFX_ByteString("IsLeft: ") + m_isLeft + '\n' +
CBC_DetectionResultColumn::toString();
}
void CBC_DetectionResultRowIndicatorColumn::removeIncorrectCodewords(