Commit 885912af authored by Jan Möbius's avatar Jan Möbius

Bugfix for ++ operator in updatetype

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12666 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8bda018f
......@@ -115,7 +115,7 @@ UpdateType& UpdateType::operator++() {
std::cerr << "Operator ++ for UpdateType which is not atomic!!" << std::endl;
}
type_ << 1;
type_ <<= 1;
return (*this);
}
......
......@@ -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 _readableName Human readable Name for this type ( Use tr to make it translatable )
* @param _name Internal name for the new UpdateType
* @param _resetNeeded If a sceneGraph reset is needed for this update
*/
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
UpdateType updateType(QString _name);
/** \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
* use the id directly (they have to be power of 2! ... Bitfield)
* 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! ... Bit field)
*/
DLLEXPORT
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