some fixes for gcc 3.4

This commit is contained in:
Thomas Orgis 2008-04-21 15:43:10 -07:00 committed by Mark Tiefenbruck
parent e048bdfd7a
commit 1e2ab2f3ed
57 changed files with 62 additions and 60 deletions

View file

@ -556,4 +556,4 @@ void DeiconifyCmd::execute() {
};
}
}; // end namespace FbCommands
} // end namespace FbCommands

View file

@ -81,6 +81,6 @@ private:
Getter m_getter;
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_ACCESSOR_HH

View file

@ -81,4 +81,4 @@ void App::end() {
m_done = true; //end loop in App::eventLoop
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -58,6 +58,6 @@ private:
Accessor<bool> &m_item;
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_BOOLMENUITEM_HH

View file

@ -33,4 +33,4 @@ BorderTheme::BorderTheme(Theme &theme, const std::string &name,
m_color->setFromString("black", theme.screenNum());
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -42,6 +42,6 @@ private:
ThemeItem<Color> m_color;
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_BORDERTHEME_HH

View file

@ -146,4 +146,4 @@ void Button::exposeEvent(XExposeEvent &event) {
clearArea(event.x, event.y, event.width, event.height);
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -491,4 +491,4 @@ void Container::setOrientation(Orientation orient) {
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -109,6 +109,6 @@ private:
bool m_update_lock;
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_CONTAINER_HH

View file

@ -51,6 +51,6 @@ private:
bool m_use_default;
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_DEFAULTVALUE_HH

View file

@ -221,4 +221,4 @@ void EventManager::dispatch(Window win, XEvent &ev, bool parent) {
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -166,4 +166,4 @@ XImage *FbDrawable::image(int x, int y, unsigned int width, unsigned int height)
ZPixmap);
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -506,4 +506,4 @@ void FbPixmap::create(Drawable src,
m_depth = depth;
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -239,7 +239,7 @@ bool haveUTF8() {
}
}; // end namespace StringUtil
} // end namespace StringUtil
StringConvertor::StringConvertor(EncodingTarget target):
#ifdef HAVE_ICONV
@ -289,4 +289,4 @@ string StringConvertor::recode(const string &src) {
#endif
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -145,4 +145,4 @@ bool Directory::open(const char *dir) {
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -73,12 +73,13 @@ using std::string;
using std::map;
using std::list;
namespace {
#ifdef HAVE_SETLOCALE
#include <locale.h>
#endif //HAVE_SETLOCALE
namespace {
// use to map <font1>|<font2>|<font3> => <fontthatworks>
typedef map<string, string> StringMap;
typedef StringMap::iterator StringMapIt;

View file

@ -53,6 +53,6 @@ protected:
FontImp() { }
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_FONTIMP_HH

View file

@ -195,4 +195,4 @@ FbString I18n::getMessage(int set_number, int message_number,
return default_message;
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -123,6 +123,6 @@ private:
void NLSInit(const char *);
}; // end namespace FbTk
} // end namespace FbTk
#endif // I18N_HH

View file

@ -160,4 +160,4 @@ void Image::removeAllSearchPaths() {
s_search_paths.clear();
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -672,4 +672,4 @@ void ImageControl::createColorTable() {
}
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -96,6 +96,6 @@ private:
Accessor<int> &m_res; ///< resource item to be changed
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_INTMENUITEM_HH

View file

@ -153,4 +153,4 @@ bool XorCommand::execute() {
return ret;
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -97,6 +97,6 @@ void ToggleCommand::execute() {
m_state = 0;
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -1300,4 +1300,4 @@ void Menu::hideShownMenu() {
shown->hide();
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -354,4 +354,4 @@ void MenuItem::showSubmenu() {
submenu()->show();
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -177,4 +177,4 @@ void ThemeItem<MenuTheme::BulletType>::load(const std::string *name, const std::
// do nothing, we don't have anything extra to load
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -58,6 +58,6 @@ private:
CreatorMap m_creators;
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // OBJECTREGISTRY_HH

View file

@ -47,6 +47,6 @@ public:
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_PARSER_HH

View file

@ -92,4 +92,4 @@ bool RegExp::error() const {
#endif // USE_REGEXP
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -61,6 +61,6 @@ private:
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_REGEXP_HH

View file

@ -230,4 +230,4 @@ void ResourceManager::unlock() {
}
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -145,6 +145,7 @@ protected:
private:
static bool m_init;
ResourceList m_resourcelist;
XrmDatabaseHelper *m_database;

View file

@ -49,7 +49,7 @@ void destroyAndClearSecond(A &a) {
a.clear();
}
}; // end namespace STLUtil
}; // end namespace FbTk
} // end namespace STLUtil
} // end namespace FbTk
#endif // STLUTIL_Hh

View file

@ -372,4 +372,4 @@ bool Shape::isShaped(const FbWindow &win) {
return (shaped != 0 ? true : false);
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -69,6 +69,6 @@ private:
int m_shapeplaces; ///< places to shape
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // SHAPE_HH

View file

@ -236,6 +236,6 @@ void getFirstWord(const std::string &in, std::string &word, std::string &rest) {
}
}
}; // end namespace StringUtil
} // end namespace StringUtil
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -82,4 +82,4 @@ void Subject::removeObserver(Observer *obj) {
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -464,4 +464,4 @@ void TextBox::adjustPos(){
adjustStartPos();
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -187,4 +187,4 @@ void TextButton::exposeEvent(XExposeEvent &event) {
clearArea(event.x, event.y, event.width, event.height, false);
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -45,4 +45,4 @@ void TextTheme::updateTextColor() {
m_text_gc.setForeground(*m_text_color);
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -50,6 +50,6 @@ private:
GContext m_text_gc;
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_TEXTTHEME_HH

View file

@ -84,4 +84,4 @@ template <>
void ThemeItem<FbTk::Justify>::load(const std::string *name, const std::string *altname) {
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -147,4 +147,4 @@ void Texture::calcHiLoColors(int screen_num) {
m_locolor.setPixel(xcol.pixel);
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -41,14 +41,14 @@ public:
FLAT = 0x00002,
SUNKEN = 0x00004,
RAISED = 0x00008,
DEFAULT_BEVEL = FLAT,
DEFAULT_BEVEL = FLAT
};
enum Textures {
NONE = 0x00000,
SOLID = 0x00010,
GRADIENT = 0x00020,
DEFAULT_TEXTURE = SOLID,
DEFAULT_TEXTURE = SOLID
};
enum Gradients {

View file

@ -1840,4 +1840,4 @@ void TextureRender::cdgradient() {
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -98,5 +98,5 @@ private:
unsigned int *xtable, *ytable;
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_TEXTURERENDER_HH

View file

@ -263,4 +263,4 @@ void ThemeManager::listItems() {
}
*/
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -287,4 +287,4 @@ void Timer::removeTimer(Timer *timer) {
m_timerlist.remove(timer);
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -335,7 +335,7 @@ void Transparent::freeAlpha() {
m_alpha = 255;
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -69,7 +69,7 @@ private:
static void init();
};
}; // end namespace FbTk
} // end namespace FbTk
#endif // FBTK_TRANSPARENT_HH

View file

@ -249,4 +249,4 @@ bool XftFontImp::validOrientation(FbTk::Orientation orient) {
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -306,5 +306,5 @@ unsigned int XmbFontImp::height() const {
return m_setextents->max_ink_extent.height;
}
}; // end namespace FbTk
} // end namespace FbTk

View file

@ -42,7 +42,7 @@ public:
/// list option bits
enum {
LIST_GROUPS = 0x01, //< list groups instead of clients
STATIC_ORDER = 0x02, ///< use creation order instead of focused order
STATIC_ORDER = 0x02 ///< use creation order instead of focused order
};
FocusableList(BScreen &scr): m_pat(0), m_parent(0), m_screen(scr) { }

View file

@ -96,7 +96,7 @@ public:
ATTRIB_WORKSPACE = 0x10, ///< workspace
ATTRIB_STACK = 0x20, ///< stack
ATTRIB_DECORATION = 0x40, ///< decorations
ATTRIB_HIDDEN = 0x80, ///< hidden
ATTRIB_HIDDEN = 0x80 ///< hidden
};
/**

View file

@ -142,5 +142,5 @@ string getWMClassClass(Window win) {
return class_name;
}
}; // end namespace Xutil
} // end namespace Xutil

View file

@ -34,6 +34,6 @@ std::string getWMClassName(Window win);
std::string getWMClassClass(Window win);
}; // end namespace Xutil
} // end namespace Xutil
#endif // XUTIL_HH