aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-05-19 12:22:55 (GMT)
committerfluxgen <fluxgen>2002-05-19 12:22:55 (GMT)
commit2d0aa410a062e7ab7eac70faad6dd854548b360e (patch)
tree90fcedda0540fed9ee96235c47ec5f7bc7013533
parentc0a9d432ea21f4f2d4e0f925e4305737c86d0c77 (diff)
downloadfluxbox_pavel-2d0aa410a062e7ab7eac70faad6dd854548b360e.zip
fluxbox_pavel-2d0aa410a062e7ab7eac70faad6dd854548b360e.tar.bz2
minor stuff
-rw-r--r--src/Basemenu.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc
index 46a5735..70e0b42 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.23 2002/05/15 09:35:49 fluxgen Exp $ 25// $Id: Basemenu.cc,v 1.24 2002/05/19 12:22:55 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -812,9 +812,9 @@ void Basemenu::drawItem(unsigned int index, bool highlight, bool clear,
812} 812}
813 813
814 814
815void Basemenu::setLabel(const char *l) { 815void Basemenu::setLabel(const char *labelstr) {
816 //we don't want 0 to std::string 816 //make sure we don't send 0 to std::string
817 menu.label = l ? l : ""; 817 menu.label = (labelstr ? labelstr : "");
818} 818}
819 819
820 820