Skip to content

Commit 68358c6

Browse files
committed
wsd: Use litteral character for readability
Change-Id: I71ace6b25b4c3fb4bedb6709a6c06e5b6c5d51b7 Signed-off-by: Ashod Nakashian <[email protected]>
1 parent 0bd8db2 commit 68358c6

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

wsd/TileCache.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ struct TileData
205205
os << "deltas: ";
206206
for (size_t i = 0; i < _wids.size(); ++i)
207207
{
208-
os << i << ": " << _wids[i] << " -> " << _offsets[i] << " ";
208+
os << i << ": " << _wids[i] << " -> " << _offsets[i] << ' ';
209209
}
210210
os << (tooLarge() ? "too-large " : "");
211211
}

wsd/TileDesc.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,11 @@ class TileCombined
441441
_tileWidth <= 0 ||
442442
_tileHeight <= 0)
443443
{
444-
throw BadArgumentException("Invalid tilecombine descriptor. Elements: " +
445-
std::to_string(_part) + " " + std::to_string(_mode) + " " +
446-
std::to_string(_width) + " " + std::to_string(_height) + " " +
447-
std::to_string(_tileWidth) + " " + std::to_string(_tileHeight));
444+
throw BadArgumentException(
445+
"Invalid tilecombine descriptor. Elements: " + std::to_string(_part) + ' ' +
446+
std::to_string(_mode) + ' ' + std::to_string(_width) + ' ' +
447+
std::to_string(_height) + ' ' + std::to_string(_tileWidth) + ' ' +
448+
std::to_string(_tileHeight));
448449
}
449450

450451
StringVector positionXtokens(StringVector::tokenize(tilePositionsX, ','));

wsd/TraceFile.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class TraceFileWriter
274274
if (_compress)
275275
{
276276
_deflater.write(&delim, 1);
277-
_deflater << "+" << deltaT;
277+
_deflater << '+' << deltaT;
278278
_deflater.write(&delim, 1);
279279
_deflater << id;
280280
_deflater.write(&delim, 1);
@@ -286,7 +286,7 @@ class TraceFileWriter
286286
else
287287
{
288288
_stream.write(&delim, 1);
289-
_stream << "+" << deltaT;
289+
_stream << '+' << deltaT;
290290
_stream.write(&delim, 1);
291291
_stream << id;
292292
_stream.write(&delim, 1);

0 commit comments

Comments
 (0)