Skip to content

Commit

Permalink
wsd: Use litteral character for readability
Browse files Browse the repository at this point in the history
Change-Id: I71ace6b25b4c3fb4bedb6709a6c06e5b6c5d51b7
Signed-off-by: Ashod Nakashian <[email protected]>
  • Loading branch information
Ashod authored and caolanm committed Dec 10, 2024
1 parent 5928c59 commit ac5ddcc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wsd/TileCache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ struct TileData
os << "deltas: ";
for (size_t i = 0; i < _wids.size(); ++i)
{
os << i << ": " << _wids[i] << " -> " << _offsets[i] << " ";
os << i << ": " << _wids[i] << " -> " << _offsets[i] << ' ';
}
os << (tooLarge() ? "too-large " : "");
}
Expand Down
9 changes: 5 additions & 4 deletions wsd/TileDesc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,11 @@ class TileCombined
_tileWidth <= 0 ||
_tileHeight <= 0)
{
throw BadArgumentException("Invalid tilecombine descriptor. Elements: " +
std::to_string(_part) + " " + std::to_string(_mode) + " " +
std::to_string(_width) + " " + std::to_string(_height) + " " +
std::to_string(_tileWidth) + " " + std::to_string(_tileHeight));
throw BadArgumentException(
"Invalid tilecombine descriptor. Elements: " + std::to_string(_part) + ' ' +
std::to_string(_mode) + ' ' + std::to_string(_width) + ' ' +
std::to_string(_height) + ' ' + std::to_string(_tileWidth) + ' ' +
std::to_string(_tileHeight));
}

StringVector positionXtokens(StringVector::tokenize(tilePositionsX, ','));
Expand Down
4 changes: 2 additions & 2 deletions wsd/TraceFile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class TraceFileWriter
if (_compress)
{
_deflater.write(&delim, 1);
_deflater << "+" << deltaT;
_deflater << '+' << deltaT;
_deflater.write(&delim, 1);
_deflater << id;
_deflater.write(&delim, 1);
Expand All @@ -286,7 +286,7 @@ class TraceFileWriter
else
{
_stream.write(&delim, 1);
_stream << "+" << deltaT;
_stream << '+' << deltaT;
_stream.write(&delim, 1);
_stream << id;
_stream.write(&delim, 1);
Expand Down

0 comments on commit ac5ddcc

Please sign in to comment.