diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-26 12:45:27 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-26 12:45:27 (GMT) |
commit | 2bad658304ead4aae1aa4aedf963ba00a5a34ea3 (patch) | |
tree | 98f2a9d790858508702ebeb3ad363e19200b5340 /Source/kwsys/SystemTools.hxx.in | |
parent | 182f6f969c3709288c2601a0cf78ff5df95841dc (diff) | |
download | CMake-2bad658304ead4aae1aa4aedf963ba00a5a34ea3.zip CMake-2bad658304ead4aae1aa4aedf963ba00a5a34ea3.tar.gz CMake-2bad658304ead4aae1aa4aedf963ba00a5a34ea3.tar.bz2 |
COMP: Attempt to fix warnings on SGI
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r-- | Source/kwsys/SystemTools.hxx.in | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in index 036c841..1d148ca 100644 --- a/Source/kwsys/SystemTools.hxx.in +++ b/Source/kwsys/SystemTools.hxx.in @@ -36,8 +36,18 @@ typedef unsigned short mode_t; namespace @KWSYS_NAMESPACE@ { -class SystemToolsManager; class SystemToolsTranslationMap; +class @KWSYS_NAMESPACE@_EXPORT SystemToolsManager +{ +public: + SystemToolsManager(); + ~SystemToolsManager(); +}; + +// This instance will show up in any translation unit that uses +// SystemTools. It will make sure SystemTools is initialized +// before it is used and is the last static object destroyed. +static SystemToolsManager SystemToolsManagerInstance; /** \class SystemTools * \brief A collection of useful platform-independent system functions. @@ -356,6 +366,14 @@ private: static void ClassFinalize(); /** + * This method prevents warning on SGI + */ + SystemToolsManager* GetSystemToolsManager() + { + return &SystemToolsManagerInstance; + } + + /** * Path translation table from dir to refdir * Each time 'dir' will be found it will be replace by 'refdir' */ @@ -364,18 +382,6 @@ private: friend class SystemToolsManager; }; -class @KWSYS_NAMESPACE@_EXPORT SystemToolsManager -{ -public: - SystemToolsManager(); - ~SystemToolsManager(); -}; - -// This instance will show up in any translation unit that uses -// SystemTools. It will make sure SystemTools is initialized -// before it is used and is the last static object destroyed. -static SystemToolsManager SystemToolsManagerInstance; - } // namespace @KWSYS_NAMESPACE@ /* Undefine temporary macros. */ |