diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2009-10-03 07:06:34 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2009-10-03 07:06:34 (GMT) |
commit | 54c58bba21ee0c233c8a56c231f2e173caa43716 (patch) | |
tree | ef532820d3960dfc54731c1a918b6d78e075696f /src | |
parent | 2a85804222ed542e374030caf52007dc4616c3de (diff) | |
download | fluxbox-54c58bba21ee0c233c8a56c231f2e173caa43716.zip fluxbox-54c58bba21ee0c233c8a56c231f2e173caa43716.tar.bz2 |
cosmetic: use FbTk::StringUtil::number2String()
Diffstat (limited to 'src')
-rw-r--r-- | src/Xinerama.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Xinerama.hh b/src/Xinerama.hh index 876005f..9d7941b 100644 --- a/src/Xinerama.hh +++ b/src/Xinerama.hh | |||
@@ -92,7 +92,6 @@ void XineramaHeadMenu<ItemType>::reloadHeads() | |||
92 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 92 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( |
93 | *Fluxbox::instance(), | 93 | *Fluxbox::instance(), |
94 | &Fluxbox::save_rc)); | 94 | &Fluxbox::save_rc)); |
95 | char tname[128]; | ||
96 | for (int i=1; i <= m_screen.numHeads(); ++i) { | 95 | for (int i=1; i <= m_screen.numHeads(); ++i) { |
97 | // TODO: nls | 96 | // TODO: nls |
98 | /* | 97 | /* |
@@ -102,9 +101,10 @@ void XineramaHeadMenu<ItemType>::reloadHeads() | |||
102 | FBNLS::XineramaDefaultHeadFormat, | 101 | FBNLS::XineramaDefaultHeadFormat, |
103 | "Head %d"), i); //m_id starts at 0 | 102 | "Head %d"), i); //m_id starts at 0 |
104 | */ | 103 | */ |
105 | sprintf(tname, "Head %d", i); | 104 | std::string tname("Head "); |
105 | tname += FbTk::StringUtil::number2String(i); | ||
106 | insert(new XineramaHeadMenuItem<ItemType>( | 106 | insert(new XineramaHeadMenuItem<ItemType>( |
107 | tname, m_object, i, saverc_cmd)); | 107 | tname.c_str(), m_object, i, saverc_cmd)); |
108 | } | 108 | } |
109 | // TODO: nls | 109 | // TODO: nls |
110 | insert(new XineramaHeadMenuItem<ItemType>( | 110 | insert(new XineramaHeadMenuItem<ItemType>( |