]> Dogcows Code - chaz/openbox/blobdiff - src/frame.cc
dont use append, dont need to extend ustring!
[chaz/openbox] / src / frame.cc
index 12a42ec2a9b481ce402e688ad69f08c56fc66bc5..ce5e961ea4c8d4e3ef0aeb873e3b9ecc15407ab0 100644 (file)
@@ -64,7 +64,7 @@ Frame::~Frame()
 }
 
 
-void Frame::setTitle(const std::string &text)
+void Frame::setTitle(const otk::ustring &text)
 {
   _label.setText(text);
   _label.update();
@@ -172,7 +172,7 @@ void Frame::adjustSize()
     // separation between titlebar elements
     const int sep = bevel + 1;
 
-    std::string layout;
+    otk::ustring layout;
     if (!python_get_string("titlebar_layout", &layout))
       layout = "ILMC";
 
@@ -223,7 +223,7 @@ void Frame::adjustSize()
       layout.erase(i--, 1);
     }
     if (!tit_l)
-      layout.append(1, 'L');
+      layout += "L";
     
     // the size of the label. this ASSUMES the layout has only buttons other
     // that the ONE LABEL!!
This page took 0.024675 seconds and 4 git commands to generate.