Browse Source

GCC 4.6 compatibility: no std::string::pop_back().

pull/38/head
Vladimír Vondruš 13 years ago
parent
commit
d1144b0484
  1. 4
      src/AbstractObject.cpp

4
src/AbstractObject.cpp

@ -170,7 +170,7 @@ std::string AbstractObject::getLabelImplementationKhr(const GLenum identifier, c
#endif #endif
/* Pop null terminator and return the string */ /* Pop null terminator and return the string */
label.pop_back(); label.resize(size);
return label; return label;
#else #else
GLsizei size; GLsizei size;
@ -212,7 +212,7 @@ std::string AbstractObject::getLabelImplementationExt(const GLenum identifier, c
#endif #endif
/* Pop null terminator and return the string */ /* Pop null terminator and return the string */
label.pop_back(); label.resize(size);
return label; return label;
} }

Loading…
Cancel
Save