Browse Source

Add missing wide char C string + String operator. Fixes #592.

Lasse Öörni 11 years ago
parent
commit
ab770f00b2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Source/Urho3D/Container/Str.h

+ 8 - 0
Source/Urho3D/Container/Str.h

@@ -505,6 +505,14 @@ inline String operator + (const char* lhs, const String& rhs)
     return ret;
 }
 
+/// Add a string to a wide char C string.
+inline String operator + (const wchar_t* lhs, const String& rhs)
+{
+    String ret(lhs);
+    ret += rhs;
+    return ret;
+}
+
 /// Wide character string. Only meant for converting from String and passing to the operating system where necessary.
 class URHO3D_API WString
 {