From d4f7f173305523e4659bd8637887385306bbfd56 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 23 Mar 2011 18:45:34 +0100 Subject: compile fix: arguments must match declaration Sun CC++ 5.11 complaint on linking about missing symbols 'nextWorkspace()', 'prevWorkspace()' etc. --- src/Screen.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 1b58231..044d689 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -1812,21 +1812,21 @@ void BScreen::setLayer(FbTk::LayerItem &item, int layernum) { /** 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(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 @@ void BScreen::rightWorkspace(const int delta) { /** Goes to the workspace "left" of the current */ -void BScreen::leftWorkspace(const int delta) { +void BScreen::leftWorkspace(int delta) { if (currentWorkspaceID() >= static_cast(delta)) changeWorkspaceID(currentWorkspaceID()-delta); } -- cgit v0.11.2