cosmetic fixes: removed redundant ';' + some whitespaces

This commit is contained in:
Mathias Gumz 2009-09-30 21:02:24 +02:00
parent 4663a9591e
commit 884db973bb
39 changed files with 87 additions and 82 deletions

View file

@ -253,6 +253,6 @@ enum {
}; // end enum
}; // end namespace FBNLS
} // end namespace FBNLS
#endif // FLUXBOX_NLS_HH

View file

@ -31,7 +31,7 @@ class ButtonTheme;
namespace FbTk {
class Button;
class ImageControl;
};
}
class ButtonTool: public GenericTool {
public:

View file

@ -77,7 +77,7 @@ private:
Focusable &m_client;
};
}; // end anonymous namespace
} // end anonymous namespace
ClientMenu::ClientMenu(BScreen &screen, Focusables &clients,
bool listen_for_iconlist_changes):

View file

@ -109,7 +109,7 @@ REGISTER_COMMAND_PARSER(movetabright, createCurrentWindowCmd, void);
REGISTER_COMMAND_PARSER(detachclient, createCurrentWindowCmd, void);
REGISTER_COMMAND_PARSER(windowmenu, createCurrentWindowCmd, void);
}; // end anonymous namespace
} // end anonymous namespace
void WindowHelperCmd::execute() {
if (WindowCmd<void>::window() || FocusControl::focusedFbWindow())
@ -201,7 +201,7 @@ FbTk::Command<void> *parseFocusCmd(const string &command, const string &args,
REGISTER_COMMAND_PARSER(activate, parseFocusCmd, void);
REGISTER_COMMAND_PARSER(focus, parseFocusCmd, void);
}; // end anonymous namespace
} // end anonymous namespace
void SetHeadCmd::real_execute() {
int num = m_head;

View file

@ -288,7 +288,7 @@ void extractNetWmIcon(Atom net_wm_icon, WinClient& winclient) {
winclient.setIcon(icon);
}
}; // end anonymous namespace
} // end anonymous namespace
class Ewmh::EwmhAtoms {
public:
@ -1535,3 +1535,4 @@ void Ewmh::updateFrameExtents(FluxboxWindow &win) {
(unsigned char *)extents, 4);
}
}

View file

@ -466,7 +466,7 @@ void SetResourceValueDialogCmd::execute() {
FbTk::FbWindow *win = new CommandDialog(*screen, "Type resource name and the value", "SetResourceValue ");
win->show();
};
}
REGISTER_UNTRUSTED_COMMAND_WITH_ARGS(bindkey, FbCommands::BindKeyCmd, void);

View file

@ -37,7 +37,7 @@ inline unsigned char maxValue(unsigned short colval) {
return colval == 65535 ? 0xFF : static_cast<unsigned char>(colval/0xFF);
}
};
}
namespace FbTk {
@ -184,4 +184,4 @@ void Color::setRGB(unsigned short red, unsigned short green, unsigned short blue
m_blue = blue;
}
};
}

View file

@ -66,7 +66,7 @@ void checkAtoms() {
}
}
}; // end of anonymous namespace
} // end of anonymous namespace
FbPixmap::FbPixmap():m_pm(0),
m_width(0), m_height(0),

View file

@ -87,7 +87,7 @@ FbWindow::FbWindow(int screen_num,
create(RootWindow(display(), screen_num),
x, y, width, height, eventmask,
override_redirect, save_unders, depth, class_type);
};
}
FbWindow::FbWindow(const FbWindow &parent,
int x, int y, unsigned int width, unsigned int height,
@ -105,7 +105,7 @@ FbWindow::FbWindow(const FbWindow &parent,
override_redirect, save_unders, depth, class_type);
};
}
FbWindow::FbWindow(Window client):
FbDrawable(),
@ -686,4 +686,4 @@ bool operator == (Window win, const FbWindow &fbwin) {
return win == fbwin.window();
}
};
}

View file

@ -58,7 +58,7 @@ namespace FileUtil {
/// copies file 'from' to 'to'
bool copyFile(const char* from, const char* to);
}; // end of File namespace
} // end of File namespace
/// Wrapper class for DIR * routines
class Directory : private FbTk::NotCopyable {

View file

@ -100,7 +100,7 @@ void resetEffects(FbTk::Font& font) {
font.setShadowOffX(2);
}
}; // end nameless namespace
} // end nameless namespace
@ -301,5 +301,5 @@ void Font::drawText(const FbDrawable &w, int screen, GC gc,
}
};
}

View file

@ -59,7 +59,7 @@ FbTk::ImageXPM xpm_loader;
#endif
}; // end of anonymous namespace
} // end of anonymous namespace
namespace FbTk {

View file

@ -50,7 +50,7 @@ namespace Image {
void removeAllSearchPaths();
/// locates an image in the search path
std::string locateFile(const std::string &filename);
};
}
/// common interface for all image classes
class ImageBase {

View file

@ -94,7 +94,7 @@ inline unsigned long bsqrt(unsigned long x) {
}
}
}; // end anonymous namespace
} // end anonymous namespace
struct ImageControl::Cache {
Pixmap pixmap;

View file

@ -35,7 +35,7 @@ typedef ScreenImlibContextContainer::iterator ScreenImlibContext;
ScreenImlibContextContainer contexts;
}; // anon namespace
} // anon namespace
namespace FbTk {

View file

@ -55,7 +55,7 @@ const struct t_modlist modlist[] = {
{0, 0}
};
};
}
namespace FbTk {

View file

@ -77,7 +77,7 @@ REGISTER_COMMAND_PARSER(and, parseLogicCommand, bool);
REGISTER_COMMAND_PARSER(or, parseLogicCommand, bool);
REGISTER_COMMAND_PARSER(xor, parseLogicCommand, bool);
}; // end anonymous namespace
} // end anonymous namespace
Command<void> *IfCommand::parse(const std::string &command, const std::string &args,
bool trusted) {

View file

@ -66,7 +66,7 @@ Command<void> *parseMacroCmd(const std::string &command, const std::string &args
REGISTER_COMMAND_PARSER(macrocmd, parseMacroCmd, void);
REGISTER_COMMAND_PARSER(togglecmd, parseMacroCmd, void);
}; // end anonymous namespace
} // end anonymous namespace
void MacroCommand::add(RefCount<Command<void> > &com) {
m_commandlist.push_back(com);

View file

@ -67,5 +67,5 @@ private:
int m_lock;
};
};
}
#endif // FBTK_MULTLAYERS_HH

View file

@ -28,4 +28,4 @@ Observer::~Observer() {
Subject::removeObserver(this); // make sure no subject has this observer attached
}
};
}

View file

@ -23,4 +23,4 @@
namespace FbTk {
const Parser::Item Parser::s_empty_item("", "");
};
}

View file

@ -103,7 +103,7 @@ struct CornerPixmaps {
// unfortunately, we need a separate pixmap per screen
std::vector<CornerPixmaps> s_corners;
}; // end of anonymous namespace
} // end of anonymous namespace
Shape::Shape(FbWindow &win, int shapeplaces):
m_win(&win),

View file

@ -69,4 +69,5 @@ void SignalHandler::handleSignal(int signum) {
}
}
};
}

View file

@ -103,7 +103,7 @@ Picture createAlphaPic(Window drawable, unsigned char alpha) {
return alpha_pic;
}
#endif // HAVE_XRENDER
};
}
namespace FbTk {

View file

@ -410,4 +410,4 @@ bool XFontImp::validOrientation(FbTk::Orientation orient) {
return m_rotfonts[orient] != 0;
}
};
}

View file

@ -158,7 +158,8 @@ XFontSet createFontSet(const char *fontname, bool& utf8mode) {
return fs;
}
};
}
namespace FbTk {
XmbFontImp::XmbFontImp(const char *filename, bool utf8) : m_fontset(0), m_setextents(0), m_utf8mode(utf8) {

View file

@ -62,7 +62,7 @@ bool doSkipWindow(const Focusable &win, const ClientPattern *pat) {
return false; // else don't skip
}
}; // end anonymous namespace
} // end anonymous namespace
FocusControl::FocusControl(BScreen &screen):
m_screen(screen),
@ -635,4 +635,6 @@ setFromString(char const *strval) {
else
setDefaultValue();
}
} // end namespace FbTk

View file

@ -241,7 +241,7 @@ private:
Focusable &m_win;
};
}; // end anonymous namespace
} // end anonymous namespace
IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme,
FbTk::ThemeProxy<IconbarTheme> &focused_theme,

View file

@ -364,7 +364,7 @@ bool getStart(FbMenuParser &parser, string &label, FbTk::StringConvertor &labelc
return true;
}
}; // end of anonymous namespace
} // end of anonymous namespace
FbMenu *MenuCreator::createMenu(const string &label, int screen_number) {
BScreen *screen = Fluxbox::instance()->findScreen(screen_number);

View file

@ -337,7 +337,7 @@ FbTk::Menu *createRememberMenu(BScreen &screen) {
menu->updateMenu();
return menu;
};
}
// offset is the offset in the string that we start looking from
// return true if all ok, false on error
@ -395,7 +395,7 @@ bool handleStartupItem(const string &line, int offset) {
tmp_exec_cmd->execute();
delete tmp_exec_cmd;
return true;
};
}
@ -609,7 +609,7 @@ Application* findMatchingPatterns(ClientPattern *pat, Remember::Patterns *patlis
return 0;
}
}; // end anonymous namespace
} // end anonymous namespace
/*------------------------------------------------------------------*\
\*------------------------------------------------------------------*/

View file

@ -41,7 +41,7 @@ class Application;
namespace FbTk {
class AutoReloadHelper;
};
}
/**
* Class Remember is an atomhandler to avoid interfering with

View file

@ -215,7 +215,7 @@ private:
Slit::Placement m_place;
};
}; // End anonymous namespace
} // End anonymous namespace
unsigned int Slit::s_eventmask = SubstructureRedirectMask | ButtonPressMask |
EnterWindowMask | LeaveWindowMask | ExposureMask;

View file

@ -66,7 +66,7 @@ private:
Toolbar &m_tbar;
};
};
}
ToolFactory::ToolFactory(BScreen &screen):m_screen(screen),
m_clock_theme(screen.screenNumber(), "toolbar.clock", "Toolbar.Clock"),

View file

@ -35,7 +35,7 @@ class Toolbar;
namespace FbTk {
class FbWindow;
};
}
/// creates toolbaritems
class ToolFactory:private FbTk::NotCopyable {

View file

@ -177,7 +177,7 @@ private:
Toolbar::Placement m_place;
};
}; // end anonymous
} // end anonymous
// toolbar frame
Toolbar::Frame::Frame(FbTk::EventHandler &evh, int screen_num):

View file

@ -259,7 +259,7 @@ private:
int m_mode;
};
};
}
int FluxboxWindow::s_num_grabs = 0;

View file

@ -189,7 +189,7 @@ REGISTER_COMMAND_PARSER(prevwindow, parseWindowList, void);
REGISTER_COMMAND_PARSER(prevgroup, parseWindowList, void);
REGISTER_COMMAND_PARSER(arrangewindows, parseWindowList, void);
}; // end anonymous namespace
} // end anonymous namespace
void AttachCmd::execute() {
BScreen *screen = Fluxbox::instance()->keyScreen();
@ -318,7 +318,7 @@ REGISTER_COMMAND_PARSER(rightworkspace, parseIntCmd, void);
REGISTER_COMMAND_PARSER(leftworkspace, parseIntCmd, void);
REGISTER_COMMAND_PARSER(workspace, parseIntCmd, void);
}; // end anonymous namespace
} // end anonymous namespace
void NextWorkspaceCmd::execute() {
BScreen *screen = Fluxbox::instance()->mouseScreen();

View file

@ -27,7 +27,7 @@ namespace FbTk {
class ImageControl;
};
}
class fbsetroot : public FbTk::App {
public:

View file

@ -463,7 +463,7 @@ set<string> modified_files;
// we may want to put a size limit on this cache, so it doesn't grow too big
map<string,string> file_cache;
};
}
// returns the contents of the file given, either from the cache or by reading
// the file from disk