]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/str.h
deduplicate empty string affectation
[xonotic/netradiant.git] / libs / str.h
index 9090bf2d6e4587b797c1fbfa7a87d8a0fc63e1b3..fcc328b1fd6eeacba0a96f8a5adb9f6ba56870ca 100644 (file)
@@ -254,7 +254,6 @@ const char* Left( std::size_t n ){
        }
        else
        {
-               g_pStrWork = "";
                g_pStrWork = new char[1];
                g_pStrWork[0] = '\0';
        }
@@ -290,7 +289,6 @@ const char* Mid( std::size_t first, std::size_t n ) const {
        }
        else
        {
-               g_pStrWork = "";
                g_pStrWork = new char[1];
                g_pStrWork[0] = '\0';
        }