summaryrefslogtreecommitdiff
path: root/libs/hwui/PathParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/PathParser.cpp')
-rw-r--r--libs/hwui/PathParser.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/libs/hwui/PathParser.cpp b/libs/hwui/PathParser.cpp
index 47fcca92bcca..ad599e9ec316 100644
--- a/libs/hwui/PathParser.cpp
+++ b/libs/hwui/PathParser.cpp
@@ -210,9 +210,8 @@ void PathParser::validateVerbAndPoints(char verb, size_t points, PathParser::Par
if (numberOfPointsExpected > 0) {
result->failureMessage += "a multiple of ";
}
- result->failureMessage += std::to_string(numberOfPointsExpected)
- + " floats. However, " + std::to_string(points)
- + " float(s) are found. ";
+ result->failureMessage += std::to_string(numberOfPointsExpected) + " floats. However, " +
+ std::to_string(points) + " float(s) are found. ";
}
void PathParser::getPathDataFromAsciiString(PathData* data, ParseResult* result,
@@ -242,8 +241,8 @@ void PathParser::getPathDataFromAsciiString(PathData* data, ParseResult* result,
validateVerbAndPoints(pathStr[start], points.size(), result);
if (result->failureOccurred) {
// If either verb or points is not valid, return immediately.
- result->failureMessage += "Failure occurred at position " +
- std::to_string(start) + " of path: " + pathStr;
+ result->failureMessage += "Failure occurred at position " + std::to_string(start) +
+ " of path: " + pathStr;
return;
}
data->verbs.push_back(pathStr[start]);
@@ -257,8 +256,8 @@ void PathParser::getPathDataFromAsciiString(PathData* data, ParseResult* result,
validateVerbAndPoints(pathStr[start], 0, result);
if (result->failureOccurred) {
// If either verb or points is not valid, return immediately.
- result->failureMessage += "Failure occurred at position " +
- std::to_string(start) + " of path: " + pathStr;
+ result->failureMessage += "Failure occurred at position " + std::to_string(start) +
+ " of path: " + pathStr;
return;
}
data->verbs.push_back(pathStr[start]);