]> git.lyx.org Git - lyx.git/blobdiff - src/support/trivstring.cpp
Maintain plain layout for separating paragraphs when switching layouts (#11936)
[lyx.git] / src / support / trivstring.cpp
index c780aa7f6d4eab9037fee46c7b5c41e0e17b8a82..d2325cbbabf37a4025e4e858f4b39a158a6efb4f 100644 (file)
@@ -167,7 +167,7 @@ trivial_string<Char> trivial_string<Char>::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);
 }
@@ -187,6 +187,8 @@ trivial_string<Char>::operator _stdstring() const
 }
 
 
+template char const * trivial_string<char>::c_str() const;
+template char_type const * trivial_string<char_type>::c_str() const;
 template<typename Char> Char const * trivial_string<Char>::c_str() const
 {
        if (use_sso())
@@ -225,7 +227,7 @@ template bool operator==(trivial_string<char_type> const &,
 template <typename Char>
 bool operator==(trivial_string<Char> const & lhs, trivial_string<Char> const & rhs)
 {
-       return lhs.compare(rhs) == 0; 
+       return lhs.compare(rhs) == 0;
 }
 
 
@@ -234,7 +236,7 @@ template bool operator==(trivial_string<char_type> const &, char_type const *);
 template <typename Char>
 bool operator==(trivial_string<Char> const & lhs, Char const * rhs)
 {
-       return lhs.compare(trivial_string<Char>(rhs)) == 0; 
+       return lhs.compare(trivial_string<Char>(rhs)) == 0;
 }
 
 
@@ -243,7 +245,7 @@ template bool operator==(char_type const *, trivial_string<char_type> const &);
 template <typename Char>
 bool operator==(Char const * lhs, trivial_string<Char> const & rhs)
 {
-       return rhs.compare(trivial_string<Char>(lhs)) == 0; 
+       return rhs.compare(trivial_string<Char>(lhs)) == 0;
 }