Make the style engine fix a little less obscure by copying the string explicitely...
[quassel.git] / src / uisupport / uistyle.h
index 4d98330..c722be8 100644 (file)
@@ -58,7 +58,7 @@ class UiStyle {
       QList<UrlInfo> urls;
     };
 
-    StyledText styleString(QString);
+    StyledText styleString(const QString &);
 
     void setFormat(FormatType, QTextCharFormat, Settings::Mode mode/* = Settings::Custom*/);
     QTextCharFormat format(FormatType, Settings::Mode mode = Settings::Custom) const;