aboutsummaryrefslogtreecommitdiff
path: root/src/Basemenu.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-09-09 10:01:41 (GMT)
committerfluxgen <fluxgen>2002-09-09 10:01:41 (GMT)
commita7dc6a68c91bafbc59e2239ef89e546831febcfd (patch)
treed80bc8c774a9d2e8c13c724a6bc738773d92c4c5 /src/Basemenu.cc
parent245f8390a513be6865dfaba7ab42a1a0daf302c6 (diff)
downloadfluxbox_paul-a7dc6a68c91bafbc59e2239ef89e546831febcfd.zip
fluxbox_paul-a7dc6a68c91bafbc59e2239ef89e546831febcfd.tar.bz2
minor stuff
Diffstat (limited to 'src/Basemenu.cc')
-rw-r--r--src/Basemenu.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc
index 87c4bf6..2f7de99 100644
--- a/src/Basemenu.cc
+++ b/src/Basemenu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Basemenu.cc,v 1.28 2002/08/04 15:19:34 fluxgen Exp $ 25// $Id: Basemenu.cc,v 1.29 2002/09/09 10:01:41 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -221,12 +221,11 @@ int Basemenu::insert(const char *label, Basemenu *submenu, int pos) {
221 221
222int Basemenu::remove(unsigned int index) { 222int Basemenu::remove(unsigned int index) {
223 if (index >= menuitems.size()) { 223 if (index >= menuitems.size()) {
224 #ifdef DEBUG 224#ifdef DEBUG
225 std::cout << "Bad index (" << index << ") given to Basemenu::remove()" 225 std::cout << "Bad index (" << index << ") given to Basemenu::remove()"
226 << " -- should be between 0 and " << menuitems.size()-1 226 << " -- should be between 0 and " << menuitems.size()
227 << " inclusive." 227 << " inclusive." << std::endl;
228 << std::endl; 228#endif // DEBUG
229 #endif
230 return -1; 229 return -1;
231 } 230 }
232 231