Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8670


Ignore:
Timestamp:
May 29, 2011, 10:58:28 PM (13 years ago)
Author:
rgrieder
Message:
  • Shell shouldn't inherit OrxonoxClass twice if not necessary.
  • Return const MultitType& if possible in CommandLineParser.
Location:
code/branches/unity_build/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/libraries/core/CommandLineParser.h

    r8520 r8670  
    9999
    100100        //! Returns the actual value of the argument. Can be equal to default value.
    101         MultiType getValue() const { return value_; }
     101        const MultiType& getValue() const { return value_; }
    102102        //! Returns the given default value as type T.
    103         MultiType getDefaultValue() const { return defaultValue_; }
     103        const MultiType& getDefaultValue() const { return defaultValue_; }
    104104
    105105    private:
     
    156156        static void getValue(const std::string& name, T* value)
    157157        { *value = (T)(getArgument(name)->getValue()); }
    158         static MultiType getValue(const std::string& name)
     158        static const MultiType& getValue(const std::string& name)
    159159        { return getArgument(name)->getValue(); }
    160160        template <class T>
  • code/branches/unity_build/src/libraries/core/command/Shell.h

    r8669 r8670  
    8585        Different graphical consoles build upon a Shell, for example InGameConsole and IOConsole.
    8686    */
    87     class _CoreExport Shell : virtual public OrxonoxClass, public OutputListener, public DevModeListener
     87    class _CoreExport Shell : public OutputListener, public DevModeListener
    8888    {
    8989        public:
Note: See TracChangeset for help on using the changeset viewer.