diff --git a/qmake/library/proitems.h b/qmake/library/proitems.h index 16dd9386c86..165ce40189d 100644 --- a/qmake/library/proitems.h +++ b/qmake/library/proitems.h @@ -208,9 +208,9 @@ inline QString operator+(const QString &one, const ProString &two) { return ProString(one) + two; } inline QString operator+(const ProString &one, const char *two) - { return one + ProString(two); } // XXX optimize + { QString ret = one.toQStringRef() + two; ret.detach(); return ret; } inline QString operator+(const char *one, const ProString &two) - { return ProString(one) + two; } // XXX optimize + { QString ret = one + two.toQStringRef(); ret.detach(); return ret; } inline QString &operator+=(QString &that, const ProString &other) { return that += other.toQStringRef(); }