diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-03-23 17:45:34 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-03-23 17:45:34 (GMT) |
commit | d4f7f173305523e4659bd8637887385306bbfd56 (patch) | |
tree | 9b7acfed0f4da43a8e282d4621d80fe0b7205444 | |
parent | 745fb8e71c899941e0cb2437a900636c28824cdd (diff) | |
download | fluxbox_paul-d4f7f173305523e4659bd8637887385306bbfd56.zip fluxbox_paul-d4f7f173305523e4659bd8637887385306bbfd56.tar.bz2 |
compile fix: arguments must match declaration
Sun CC++ 5.11 complaint on linking about missing symbols 'nextWorkspace()',
'prevWorkspace()' etc.
-rw-r--r-- | src/Screen.cc | 8 |
1 files 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) { | |||
1812 | /** | 1812 | /** |
1813 | Goes to the workspace "right" of the current | 1813 | Goes to the workspace "right" of the current |
1814 | */ | 1814 | */ |
1815 | void BScreen::nextWorkspace(const int delta) { | 1815 | void BScreen::nextWorkspace(int delta) { |
1816 | changeWorkspaceID( (currentWorkspaceID() + delta) % numberOfWorkspaces()); | 1816 | changeWorkspaceID( (currentWorkspaceID() + delta) % numberOfWorkspaces()); |
1817 | } | 1817 | } |
1818 | 1818 | ||
1819 | /** | 1819 | /** |
1820 | Goes to the workspace "left" of the current | 1820 | Goes to the workspace "left" of the current |
1821 | */ | 1821 | */ |
1822 | void BScreen::prevWorkspace(const int delta) { | 1822 | void BScreen::prevWorkspace(int delta) { |
1823 | changeWorkspaceID( (static_cast<signed>(numberOfWorkspaces()) + currentWorkspaceID() - (delta % numberOfWorkspaces())) % numberOfWorkspaces()); | 1823 | changeWorkspaceID( (static_cast<signed>(numberOfWorkspaces()) + currentWorkspaceID() - (delta % numberOfWorkspaces())) % numberOfWorkspaces()); |
1824 | } | 1824 | } |
1825 | 1825 | ||
1826 | /** | 1826 | /** |
1827 | Goes to the workspace "right" of the current | 1827 | Goes to the workspace "right" of the current |
1828 | */ | 1828 | */ |
1829 | void BScreen::rightWorkspace(const int delta) { | 1829 | void BScreen::rightWorkspace(int delta) { |
1830 | if (currentWorkspaceID()+delta < numberOfWorkspaces()) | 1830 | if (currentWorkspaceID()+delta < numberOfWorkspaces()) |
1831 | changeWorkspaceID(currentWorkspaceID()+delta); | 1831 | changeWorkspaceID(currentWorkspaceID()+delta); |
1832 | } | 1832 | } |
@@ -1834,7 +1834,7 @@ void BScreen::rightWorkspace(const int delta) { | |||
1834 | /** | 1834 | /** |
1835 | Goes to the workspace "left" of the current | 1835 | Goes to the workspace "left" of the current |
1836 | */ | 1836 | */ |
1837 | void BScreen::leftWorkspace(const int delta) { | 1837 | void BScreen::leftWorkspace(int delta) { |
1838 | if (currentWorkspaceID() >= static_cast<unsigned int>(delta)) | 1838 | if (currentWorkspaceID() >= static_cast<unsigned int>(delta)) |
1839 | changeWorkspaceID(currentWorkspaceID()-delta); | 1839 | changeWorkspaceID(currentWorkspaceID()-delta); |
1840 | } | 1840 | } |