From 6ac57655d9b0cf02d449aa9a01c7a82f5f3bbffa Mon Sep 17 00:00:00 2001 From: mathias Date: Tue, 17 Apr 2007 07:52:40 +0000 Subject: basicly cosmetic changes, patch by slava semushin --- ChangeLog | 5 +++++ configure.in | 2 +- src/FbTk/FbWindow.hh | 1 - src/FbTk/I18n.hh | 2 -- src/FbTk/ImageControl.cc | 4 ---- src/FbTk/MenuItem.hh | 1 - src/FbTk/Timer.hh | 11 +++++------ src/FbTk/XLayer.hh | 2 +- src/FbTk/XLayerItem.hh | 3 --- src/Keys.cc | 8 +++++--- src/Screen.cc | 4 ---- src/fluxbox.cc | 12 ------------ src/main.cc | 42 +++++++++++++++++------------------------- 13 files changed, 34 insertions(+), 63 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e6ad14..9674e05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ (Format: Year/Month/Day) Changes for 1.0.0: +*07/04/17: + * cosmetic changes (Mathias, thanks Slava Semushin) + configure.in Screen.cc Keys.cc main.cc FbTk/MenuItem.hh FbTk/Timer.hh + FbTk/XLayerItem.hh FbTk/ImageControl.cc FbTk/I18n.hh FbTk/FbWindow.hh + FbTk/XLayer.hh fluxbox.cc *07/04/11: * updated asciidoc-docs, (Mathias, thanks Christian Loosli for fluxbox.de.txt) *07/04/08: diff --git a/configure.in b/configure.in index afc703b..16e9e23 100644 --- a/configure.in +++ b/configure.in @@ -16,7 +16,7 @@ dnl Locate required external software AC_PROG_CC AC_PROG_CXX AC_PROG_INSTALL -AM_PROG_LIBTOOL +AC_PROG_RANLIB AC_CHECK_PROGS(regex_cmd, sed) if test x$regex_cmd = "x"; then diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index c5494b0..a1b93cc 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh @@ -26,7 +26,6 @@ #include "FbDrawable.hh" -#include #include #include #include diff --git a/src/FbTk/I18n.hh b/src/FbTk/I18n.hh index 9a936d8..298c64c 100644 --- a/src/FbTk/I18n.hh +++ b/src/FbTk/I18n.hh @@ -60,8 +60,6 @@ void catclose(nl_catd cat); #endif // HAVE_NL_TYPES_H -#include - // Some defines to help out #ifdef NLS #define _FB_USES_NLS \ diff --git a/src/FbTk/ImageControl.cc b/src/FbTk/ImageControl.cc index c1fa7a5..5f9f644 100644 --- a/src/FbTk/ImageControl.cc +++ b/src/FbTk/ImageControl.cc @@ -61,10 +61,6 @@ #include #endif -#ifdef HAVE_CTYPE_H -#include -#endif // HAVE_CTYPE_H - #include using std::cerr; diff --git a/src/FbTk/MenuItem.hh b/src/FbTk/MenuItem.hh index 701b624..afb6be9 100644 --- a/src/FbTk/MenuItem.hh +++ b/src/FbTk/MenuItem.hh @@ -30,7 +30,6 @@ #include "ITypeAheadable.hh" #include "FbString.hh" -#include #include namespace FbTk { diff --git a/src/FbTk/Timer.hh b/src/FbTk/Timer.hh index 189c2af..bd55435 100644 --- a/src/FbTk/Timer.hh +++ b/src/FbTk/Timer.hh @@ -76,9 +76,9 @@ public: int isTiming() const { return m_timing; } int getInterval() const { return m_interval; } - + int doOnce() const { return m_once; } - + const timeval &getTimeout() const { return m_timeout; } const timeval &getStartTime() const { return m_start; } void makeEndTime(timeval &tm) const; @@ -92,12 +92,12 @@ private: static void addTimer(Timer *timer); /// remove a timer from the static list static void removeTimer(Timer *timer); - + typedef std::list TimerList; static TimerList m_timerlist; ///< list of all timers, sorted by next trigger time (start + timeout) - + RefCount m_handler; ///< what to do on a timeout - + bool m_timing; ///< clock running? bool m_once; ///< do timeout only once? int m_interval; ///< Is an interval-only timer (e.g. clock) @@ -105,7 +105,6 @@ private: timeval m_start; ///< start time timeval m_timeout; ///< time length - }; } // end namespace FbTk diff --git a/src/FbTk/XLayer.hh b/src/FbTk/XLayer.hh index 660886e..238f698 100644 --- a/src/FbTk/XLayer.hh +++ b/src/FbTk/XLayer.hh @@ -42,7 +42,7 @@ public: typedef std::list ItemList; typedef std::list::iterator iterator; - + //typedef std::list::reverse_iterator reverse_iterator; void setLayerNum(int layernum) { m_layernum = layernum; }; diff --git a/src/FbTk/XLayerItem.hh b/src/FbTk/XLayerItem.hh index 90d2167..e17d162 100644 --- a/src/FbTk/XLayerItem.hh +++ b/src/FbTk/XLayerItem.hh @@ -30,9 +30,6 @@ #include "NotCopyable.hh" #include "FbWindow.hh" -#include - - namespace FbTk { class XLayerItem : public LayerItem, private NotCopyable { diff --git a/src/Keys.cc b/src/Keys.cc index 97a83bf..fd96fe8 100644 --- a/src/Keys.cc +++ b/src/Keys.cc @@ -39,9 +39,11 @@ #endif // HAVE_CONFIG_H -#ifdef HAVE_CTYPE_H -#include -#endif // HAVE_CTYPE_H +#ifdef HAVE_CCTYPE + #include +#else + #include +#endif // HAVE_CCTYPE #ifdef HAVE_CSTDIO #include diff --git a/src/Screen.cc b/src/Screen.cc index 9612a04..0075c4b 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -101,10 +101,6 @@ class Slit {}; #include #endif // STDC_HEADERS -#ifdef HAVE_CTYPE_H -#include -#endif // HAVE_CTYPE_H - #ifdef HAVE_UNISTD_H #include #include diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 5dc2b52..e0bb345 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -134,21 +134,9 @@ class Toolbar { }; #include #endif // HAVE_SYS_STAT_H -#ifdef TIME_WITH_SYS_TIME -#include -#include -#else // !TIME_WITH_SYS_TIME -#ifdef HAVE_SYS_TIME_H -#include -#else // !HAVE_SYS_TIME_H -#include -#endif // HAVE_SYS_TIME_H -#endif // TIME_WITH_SYS_TIME - #include #include -#include #include #include #include diff --git a/src/main.cc b/src/main.cc index 1c5e283..7b98597 100644 --- a/src/main.cc +++ b/src/main.cc @@ -39,21 +39,12 @@ #define _GNU_SOURCE #endif // _GNU_SOURCE -#ifdef HAVE_CSTDIO - #include -#else - #include -#endif #ifdef HAVE_CSTDLIB #include #else #include #endif -#ifdef HAVE_CSTRING - #include -#else - #include -#endif + #include #include #include @@ -199,17 +190,18 @@ int main(int argc, char **argv) { int i; for (i = 1; i < argc; ++i) { - if (! strcmp(argv[i], "-rc")) { + string arg(argv[i]); + if (arg == "-rc") { // look for alternative rc file to use if ((++i) >= argc) { cerr<<_FB_CONSOLETEXT(main, RCRequiresArg, "error: '-rc' requires an argument", "the -rc option requires a file argument")<(display_env.c_str()))) { cerr<<_FB_CONSOLETEXT(main, WarnDisplayEnv, @@ -228,17 +220,17 @@ int main(int argc, char **argv) { "")<= argc) { cerr<<_FB_CONSOLETEXT(main, LOGRequiresArg, "error: '-log' needs an argument", "")<