Commit 2230ba1c authored by Jan Möbius's avatar Jan Möbius
Browse files

Bugfix for ++ operator in updatetype

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12666 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 33005235
...@@ -115,7 +115,7 @@ UpdateType& UpdateType::operator++() { ...@@ -115,7 +115,7 @@ UpdateType& UpdateType::operator++() {
std::cerr << "Operator ++ for UpdateType which is not atomic!!" << std::endl; std::cerr << "Operator ++ for UpdateType which is not atomic!!" << std::endl;
} }
type_ << 1; type_ <<= 1;
return (*this); return (*this);
} }
......
...@@ -184,22 +184,22 @@ const UpdateType UPDATE_UNUSED ( UpdateTypeSet(1) << 13 ); ...@@ -184,22 +184,22 @@ const UpdateType UPDATE_UNUSED ( UpdateTypeSet(1) << 13 );
* *
*/ */
/** Adds a datatype and returns the id for the new type /** Adds a UpdateType and returns the id for the new type
* *
* @param _name Internal name for the new DataType * @param _name Internal name for the new UpdateType
* @param _readableName Human readable Name for this type ( Use tr to make it translatable ) * @param _resetNeeded If a sceneGraph reset is needed for this update
*/ */
DLLEXPORT DLLEXPORT
UpdateType addUpdateType(QString _name); UpdateType addUpdateType(QString _name, bool _resetNeeded = true);
/// Given a dataType Identifier string this function will return the id of the datatype /// Given an UpdateType Identifier string this function will return the id of the UpdateType
DLLEXPORT DLLEXPORT
UpdateType updateType(QString _name); UpdateType updateType(QString _name);
/** \brief Get the name of a type with given id /** \brief Get the name of a type with given id
* *
* The ids are organized in a bitfield. So use either the macro for getting the type id or * The ids are organized in a bit field. So use either the macro for getting the type id or
* use the id directly (they have to be power of 2! ... Bitfield) * use the id directly (they have to be power of 2! ... Bit field)
*/ */
DLLEXPORT DLLEXPORT
QString updateTypeName(UpdateType _id); QString updateTypeName(UpdateType _id);
......
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