X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Ftrivstring.cpp;h=d2325cbbabf37a4025e4e858f4b39a158a6efb4f;hb=cf14e814124ccbc8155fa1dde98d03be319c0e87;hp=127a8d30b5d71cda3e2295dba6895469c3854607;hpb=b147cd0f3a2b69cd4a983d1b35f29fa7502855f3;p=lyx.git diff --git a/src/support/trivstring.cpp b/src/support/trivstring.cpp index 127a8d30b5..d2325cbbab 100644 --- a/src/support/trivstring.cpp +++ b/src/support/trivstring.cpp @@ -167,7 +167,7 @@ trivial_string trivial_string::substr(size_t pos, size_t n) const if (pos > length()) throw out_of_range("trivial_string::substr"); if (n == _stdstring::npos) - n = length() - pos; + n = length() - pos; size_t const l = min(pos + n, length()); return trivial_string(c_str() + pos, l - pos); } @@ -227,7 +227,7 @@ template bool operator==(trivial_string const &, template bool operator==(trivial_string const & lhs, trivial_string const & rhs) { - return lhs.compare(rhs) == 0; + return lhs.compare(rhs) == 0; } @@ -236,7 +236,7 @@ template bool operator==(trivial_string const &, char_type const *); template bool operator==(trivial_string const & lhs, Char const * rhs) { - return lhs.compare(trivial_string(rhs)) == 0; + return lhs.compare(trivial_string(rhs)) == 0; } @@ -245,7 +245,7 @@ template bool operator==(char_type const *, trivial_string const &); template bool operator==(Char const * lhs, trivial_string const & rhs) { - return rhs.compare(trivial_string(lhs)) == 0; + return rhs.compare(trivial_string(lhs)) == 0; }