Fixed cppcheck warnings

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@486 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-01-12 11:50:26 +00:00
parent 7c4273dd78
commit 32b61e4388
5 changed files with 28 additions and 32 deletions

View File

@@ -49,7 +49,7 @@ public:
typedef T value_type;
CmdOption(const T& _val) : val_(_val), valid_(true) { }
CmdOption(const T& _val) : val_(_val), valid_(true), enabled_(false) { }
CmdOption() : valid_(false), enabled_(false) { }
// has been set and has a value
@@ -69,10 +69,10 @@ public:
return *this;
}
operator T () { return val_; }
operator T () const { return val_; }
// operator const T& () const { return val_; }
operator T* () { return is_valid() ? &val_ : NULL; }
operator T* () const { return is_valid() ? &val_ : NULL; }
private: