]> Dogcows Code - chaz/openbox/commitdiff
don't cast char*'s to string's needlessly
authorDana Jansens <danakj@orodu.net>
Sun, 7 Jul 2002 11:17:44 +0000 (11:17 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 7 Jul 2002 11:17:44 +0000 (11:17 +0000)
src/Screen.cc
src/Slit.cc
src/Toolbar.cc

index 1879976f645521c16bbe4f900e10d1f5c687c1ae..c82ab07c6224c660fcc4a87ce37f8c8094ecc03a 100644 (file)
@@ -106,7 +106,7 @@ static int anotherWMRunning(Display *display, XErrorEvent *) {
 
 BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(bb, scrn) {
   blackbox = bb;
-  screenstr = (string)"session.screen" + itostring(scrn) + '.';
+  screenstr = "session.screen" + itostring(scrn) + '.';
   config = blackbox->getConfig();
   xatom = blackbox->getXAtom();
 
index 298ef9cc9cf484db9ff6a4278df812899da2f460..307430320921a27849648b852805d53dbe4a0477 100644 (file)
@@ -40,8 +40,7 @@ extern "C" {
 Slit::Slit(BScreen *scr) {
   screen = scr;
   blackbox = screen->getBlackbox();
-  slitstr = (std::string)"session.screen" + itostring(screen->getScreenNumber())
-    + ".slit.";
+  slitstr = "session.screen" + itostring(screen->getScreenNumber()) + ".slit.";
   config = blackbox->getConfig();
 
   load_rc();
index 2487c112b62adee76eecbad3b7462c8e90f42dd6..dac1ad7f16611b8189d8b5e29deffa92062b7e4f 100644 (file)
@@ -77,8 +77,8 @@ static long aMinuteFromNow(void) {
 Toolbar::Toolbar(BScreen *scrn) {
   screen = scrn;
   blackbox = screen->getBlackbox();
-  toolbarstr = (string)"session.screen" + itostring(screen->getScreenNumber())
-    ".toolbar.";
+  toolbarstr = "session.screen" + itostring(screen->getScreenNumber()) +
+    ".toolbar.";
   config = blackbox->getConfig();
 
   load_rc();
This page took 0.026494 seconds and 4 git commands to generate.