compile fix: arguments must match declaration

Sun CC++ 5.11 complaint on linking about missing symbols 'nextWorkspace()',
'prevWorkspace()' etc.
This commit is contained in:
Mathias Gumz 2011-03-23 18:45:34 +01:00
parent 745fb8e71c
commit d4f7f17330

View file

@ -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<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 @@ 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<unsigned int>(delta))
changeWorkspaceID(currentWorkspaceID()-delta);
}