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
1 files changed,
4 insertions(+),
4 deletions(-)
jump to
M
src/Screen.cc
→
src/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); }