Commit b1f4b320 authored by Matthias Möller's avatar Matthias Möller

add missing const qualifier

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17724 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 056375d7
......@@ -90,27 +90,27 @@ class DLLEXPORT DataType {
DataType();
DataType(const unsigned int& _i);
bool operator!=( const unsigned int& _i );
bool operator!=( const DataType& _i );
bool operator!=( const unsigned int& _i ) const;
bool operator!=( const DataType& _i ) const;
bool operator==( const unsigned int& _i );
bool operator==( const DataType& _i );
bool operator==( const unsigned int& _i ) const;
bool operator==( const DataType& _i ) const;
DataType& operator=( const unsigned int& _i );
DataType& operator=( const DataType& _i );
bool operator<( const unsigned int& _i );
bool operator<( const unsigned int& _i ) const;
bool operator<( const DataType& _i ) const;
DataType& operator|=( const unsigned int& _i );
DataType& operator|=( const DataType& _i );
bool operator&( const unsigned int& _i );
bool operator&( const unsigned int& _i ) const;
bool operator&( const DataType& _i ) const;
DataType operator!();
bool contains( const DataType& _i );
bool contains( const DataType& _i ) const;
DataType operator|( const DataType& _i ) const;
......@@ -125,7 +125,7 @@ class DLLEXPORT DataType {
unsigned int value() const;
/// Return the name of this type as text
QString name();
QString name() const;
private:
unsigned int field;
......
......@@ -314,21 +314,21 @@ DataType::DataType(const unsigned int& _i):
//===========================================
bool DataType::operator!=( const unsigned int& _i ) {
bool DataType::operator!=( const unsigned int& _i ) const{
return (_i != field);
}
bool DataType::operator!=( const DataType& _i ) {
bool DataType::operator!=( const DataType& _i ) const{
return (field != _i.field);
}
//===========================================
bool DataType::operator==( const unsigned int& _i ) {
bool DataType::operator==( const unsigned int& _i ) const {
return (_i == field);
}
bool DataType::operator==( const DataType& _i ) {
bool DataType::operator==( const DataType& _i ) const{
return (_i.field == field);
}
......@@ -346,7 +346,7 @@ DataType& DataType::operator=( const DataType& _i ) {
//===========================================
bool DataType::operator<( const unsigned int& _i ) {
bool DataType::operator<( const unsigned int& _i ) const {
return (field < _i);
}
......@@ -356,7 +356,7 @@ bool DataType::operator<( const DataType& _i ) const {
//===========================================
bool DataType::operator&( const unsigned int& _i ) {
bool DataType::operator&( const unsigned int& _i ) const {
return (field & _i);
}
......@@ -374,7 +374,7 @@ DataType DataType::operator!() {
//===========================================
bool DataType::contains( const DataType& _i ){
bool DataType::contains( const DataType& _i )const{
//its not magic
return ( (_i.field & field) == _i.field);
}
......@@ -416,7 +416,7 @@ unsigned int DataType::value() const {
return( field );
}
QString DataType::name() {
QString DataType::name() const {
return typeName(field);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment