Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1064 for code/trunk/src/util


Ignore:
Timestamp:
Apr 14, 2008, 9:39:57 PM (17 years ago)
Author:
rgrieder
Message:
  • replaced all String2Number with ConvertValue
  • replaced all tokenize with SubString
  • dealt with warnings under msvc
  • removed some warnings by placing casts
  • bugfix in audio: local variable pushed into member variable std::vector
  • updated StableHeaders.h
Location:
code/trunk/src/util
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/util/Convert.h

    r1062 r1064  
    4343#include "SubString.h"
    4444#include "MultiTypeMath.h"
     45
     46// disable annoying warning about forcing value to boolean
     47#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC
     48#pragma warning(push)
     49#pragma warning(disable:4100 4800)
     50#endif
    4551
    4652
     
    620626};
    621627
     628#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC
     629#pragma warning(pop)
     630#endif
     631
    622632#endif /* _Convert_H__ */
  • code/trunk/src/util/MultiTypeMath.h

    r1056 r1064  
    3535#include "MultiTypeString.h"
    3636#include "Math.h"
     37
     38// disable annoying warning about multiple assignment operators
     39#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC
     40#pragma warning(push)
     41#pragma warning(disable:4522)
     42#endif
    3743
    3844class _UtilExport MultiTypeMath : public MultiTypeString
     
    160166_UtilExport std::ostream& operator<<(std::ostream& out, MultiTypeMath& mtm);
    161167
     168#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC
     169#pragma warning(pop)
     170#endif
     171
    162172#endif /* _MultiTypeMath_H__ */
  • code/trunk/src/util/MultiTypeString.cc

    r1056 r1064  
    120120        return MultiTypePrimitive::toString();
    121121
    122     return output;
     122    // FIXME: unreachable code
     123    // return output;
    123124}
    124125
  • code/trunk/src/util/MultiTypeString.h

    r1062 r1064  
    3737
    3838#include "MultiTypePrimitive.h"
     39
     40// disable annoying warning about multiple assignment operators
     41#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC
     42#pragma warning(push)
     43#pragma warning(disable:4522)
     44#endif
    3945
    4046class _UtilExport MultiTypeString : public MultiTypePrimitive
     
    117123_UtilExport std::ostream& operator<<(std::ostream& out, MultiTypeString& mts);
    118124
     125#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC
     126#pragma warning(pop)
     127#endif
     128
    119129#endif /* _MultiTypeString_H__ */
  • code/trunk/src/util/String.cc

    r1062 r1064  
    308308    for (unsigned int i = 0; i < str->size(); ++i)
    309309    {
    310         (*str)[i] = tolower((*str)[i]);
     310        (*str)[i] = (char)tolower((*str)[i]);
    311311    }
    312312}
     
    332332    for (unsigned int i = 0; i < str->size(); ++i)
    333333    {
    334         (*str)[i] = toupper((*str)[i]);
     334        (*str)[i] = (char)toupper((*str)[i]);
    335335    }
    336336}
Note: See TracChangeset for help on using the changeset viewer.