]> git.lyx.org Git - lyx.git/blobdiff - src/support/ExceptionMessage.h
Work around qt bug that prevents the glyph LATIN CAPITAL LETTER SHARP S from being...
[lyx.git] / src / support / ExceptionMessage.h
index 9b752be029e5351d73ebf675e01b913fd2c6502b..347c7024f2bad15b4de0bcad67e0719654052672 100644 (file)
@@ -25,6 +25,7 @@ namespace support {
 
 enum ExceptionType {
        ErrorException,
+       BufferException,
        WarningException
 };
 
@@ -34,7 +35,7 @@ public:
        ExceptionMessage(ExceptionType type, docstring const & title,
                docstring const & details)
        : type_(type), title_(title), details_(details),
-         message_(to_utf8(title_ + '\n' + details_)) {}
+         message_(to_utf8(title_ + docstring::value_type('\n') + details_)) {}
 
        virtual const char * what() const throw() { return message_.c_str(); }
        virtual ~ExceptionMessage() throw() {}