summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2009-08-09 20:08:28 (UTC)
committer Michael Krelin <hacker@klever.net>2009-08-09 20:08:28 (UTC)
commit556f6f8ade5643b5ad798f4b0077843866c1b461 (patch) (side-by-side diff)
treebad38ed74352e4c80a509476053540286e4e6582
parenta141dd88e782636ca6894939a019528d5d46518a (diff)
downloadnapkin-556f6f8ade5643b5ad798f4b0077843866c1b461.zip
napkin-556f6f8ade5643b5ad798f4b0077843866c1b461.tar.gz
napkin-556f6f8ade5643b5ad798f4b0077843866c1b461.tar.bz2
made a compiler a bit happier
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--src/napkin.cc2
-rw-r--r--src/widgets.cc8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/napkin.cc b/src/napkin.cc
index d9ba0c9..78f44f8 100644
--- a/src/napkin.cc
+++ b/src/napkin.cc
@@ -50,5 +50,5 @@ class napkin_ui : public Gtk::Window {
: w_history(db)
{
- static char *ui_info =
+ static const char *ui_info =
"<ui>"
"<menubar name='menu_bar'>"
diff --git a/src/widgets.cc b/src/widgets.cc
index ea85bc8..61c7da9 100644
--- a/src/widgets.cc
+++ b/src/widgets.cc
@@ -7,8 +7,8 @@ namespace napkin {
hypnoinfo_t::hypnoinfo_t()
: w_upper(4,3,false/*homogeneous*/),
- lc_tobed("To bed:",0.5,0.5),
- lc_timeline("Sleep timeline:",0.5,0.5),
- lc_alarm("Alarm:",0.5,0.5), lc_window("Window:",0.5,0.5),
- l_data_a("",0.9,0.5)
+ lc_tobed("To bed:",0.5f,0.5f),
+ lc_timeline("Sleep timeline:",0.5f,0.5f),
+ lc_alarm("Alarm:",0.5f,0.5f), lc_window("Window:",0.5f,0.5f),
+ l_data_a("",0.9f,0.5f)
{
add(l_date);