all repos — fluxbox @ d4f7f173305523e4659bd8637887385306bbfd56

custom fork of the fluxbox windowmanager

compile fix: arguments must match declaration

Sun CC++ 5.11 complaint on linking about missing symbols 'nextWorkspace()',
'prevWorkspace()' etc.
Mathias Gumz akira at fluxbox dot org
commit

d4f7f173305523e4659bd8637887385306bbfd56

parent

745fb8e71c899941e0cb2437a900636c28824cdd

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -1812,21 +1812,21 @@

/** Goes to the workspace "right" of the current */ -void BScreen::nextWorkspace(const int delta) { +void BScreen::nextWorkspace(int delta) { changeWorkspaceID( (currentWorkspaceID() + delta) % numberOfWorkspaces()); } /** Goes to the workspace "left" of the current */ -void BScreen::prevWorkspace(const int delta) { +void BScreen::prevWorkspace(int delta) { changeWorkspaceID( (static_cast<signed>(numberOfWorkspaces()) + currentWorkspaceID() - (delta % numberOfWorkspaces())) % numberOfWorkspaces()); } /** Goes to the workspace "right" of the current */ -void BScreen::rightWorkspace(const int delta) { +void BScreen::rightWorkspace(int delta) { if (currentWorkspaceID()+delta < numberOfWorkspaces()) changeWorkspaceID(currentWorkspaceID()+delta); }

@@ -1834,7 +1834,7 @@

/** Goes to the workspace "left" of the current */ -void BScreen::leftWorkspace(const int delta) { +void BScreen::leftWorkspace(int delta) { if (currentWorkspaceID() >= static_cast<unsigned int>(delta)) changeWorkspaceID(currentWorkspaceID()-delta); }