Commits

Martin Felis committed b7d1e58

fixed missing const for Model::GetBodyId()

  • Participants
  • Parent commits 02a73fd
  • Branches dev

Comments (0)

Files changed (2)

File src/Model.cc

 	}
 }
 
-unsigned int Model::GetBodyId (const char *id) {
+unsigned int Model::GetBodyId (const char *id) const {
 	for (unsigned int i = 0; i < mBodyNames.size(); i++) {
 		if (mBodyNames[i] == id)
 			return i;
 	 *
 	 * \returns the id of the body or \c std::numeric_limits<unsigned int>::max() if the id was not found.
 	 */
-	unsigned int GetBodyId (const char *id);
+	unsigned int GetBodyId (const char *id) const;
 
 	/// \brief Initializes the helper values for the dynamics algorithm
 	void Init ();