GTK: Fix compilation without rvalue refs

stable-5.2
Günther Brammer 2009-05-12 23:36:54 +02:00
parent c25bc6b6d9
commit bce1e9ccf8
1 changed files with 2 additions and 0 deletions

View File

@ -93,7 +93,9 @@ namespace {
class ImplicitStrBuf: public StdStrBuf {
public:
ImplicitStrBuf(StdStrBuf RREF Buf2): StdStrBuf(static_cast<StdStrBuf RREF>(Buf2)) { }
#ifdef HAVE_RVALUE_REF
ImplicitStrBuf(const StdStrBuf & Buf2): StdStrBuf(Buf2) { }
#endif
ImplicitStrBuf(ImplicitStrBuf RREF Buf2): StdStrBuf(static_cast<ImplicitStrBuf RREF>(Buf2)) { }
ImplicitStrBuf(const ImplicitStrBuf & Buf2): StdStrBuf(Buf2) { }
operator const char *() const { return getData(); }