diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2009-10-01 05:34:37 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2009-10-01 05:34:37 (GMT) |
commit | 6c0739e8895c9b909e4d925f57c130b4db3e842e (patch) | |
tree | 6662632afe285a7bcc048353e001735dc4f714ff | |
parent | 38ef6e515589af7841c577188eb23c5dbe5d11f3 (diff) | |
download | fluxbox-6c0739e8895c9b909e4d925f57c130b4db3e842e.zip fluxbox-6c0739e8895c9b909e4d925f57c130b4db3e842e.tar.bz2 |
compile fix: using correct forward declaration for template classes
we got this 'Warning (Anachronism): Old syntax for explicit specialization or
instantiation ignored.' with the solaris compiler
-rw-r--r-- | src/FbTk/BoolMenuItem.hh | 2 | ||||
-rw-r--r-- | src/FbTk/IntMenuItem.hh | 2 | ||||
-rw-r--r-- | src/FbTk/Menu.hh | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/BoolMenuItem.hh b/src/FbTk/BoolMenuItem.hh index 3e68cbd..3ab20ad 100644 --- a/src/FbTk/BoolMenuItem.hh +++ b/src/FbTk/BoolMenuItem.hh | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | namespace FbTk { | 27 | namespace FbTk { |
28 | 28 | ||
29 | class Accessor<class T>; | 29 | template <typename> class Accessor; |
30 | 30 | ||
31 | /// a bool menu item | 31 | /// a bool menu item |
32 | class BoolMenuItem: public FbTk::MenuItem { | 32 | class BoolMenuItem: public FbTk::MenuItem { |
diff --git a/src/FbTk/IntMenuItem.hh b/src/FbTk/IntMenuItem.hh index 4aade43..9d2d2ba 100644 --- a/src/FbTk/IntMenuItem.hh +++ b/src/FbTk/IntMenuItem.hh | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | namespace FbTk { | 27 | namespace FbTk { |
28 | 28 | ||
29 | class Accessor<class T>; | 29 | template <typename T> class Accessor; |
30 | 30 | ||
31 | /// Changes an resource integer value between min and max | 31 | /// Changes an resource integer value between min and max |
32 | class IntMenuItem: public FbTk::MenuItem { | 32 | class IntMenuItem: public FbTk::MenuItem { |
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh index 4eb5e27..09bdd8c 100644 --- a/src/FbTk/Menu.hh +++ b/src/FbTk/Menu.hh | |||
@@ -38,10 +38,10 @@ | |||
38 | 38 | ||
39 | namespace FbTk { | 39 | namespace FbTk { |
40 | 40 | ||
41 | class Command<class T>; | 41 | template <typename T> class Command; |
42 | class MenuItem; | 42 | class MenuItem; |
43 | class ImageControl; | 43 | class ImageControl; |
44 | class RefCount<class T>; | 44 | template <typename T> class RefCount; |
45 | 45 | ||
46 | /// Base class for menus | 46 | /// Base class for menus |
47 | class Menu: public FbTk::EventHandler, FbTk::FbWindowRenderer, | 47 | class Menu: public FbTk::EventHandler, FbTk::FbWindowRenderer, |