From ed3e597500ce29be5bd53671f9c92ed15e55f4ac Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 7 Jul 2002 11:17:44 +0000 Subject: [PATCH] don't cast char*'s to string's needlessly --- src/Screen.cc | 2 +- src/Slit.cc | 3 +-- src/Toolbar.cc | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 1879976f..c82ab07c 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -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(); diff --git a/src/Slit.cc b/src/Slit.cc index 298ef9cc..30743032 100644 --- a/src/Slit.cc +++ b/src/Slit.cc @@ -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(); diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 2487c112..dac1ad7f 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -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(); -- 2.45.2