Browse Source

Update String.hpp

removed used auto-Type for non C++ Compliance
pull/210/head
CapRat GitHub 6 years ago
parent
commit
bb4bd0fb08
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      distrho/extra/String.hpp

+ 2
- 2
distrho/extra/String.hpp View File

@@ -836,7 +836,7 @@ String operator+(const String& strBefore, const char* const strBufAfter) noexcep
char* newBuf = (char*)malloc(sizeof(char) * newBufSize); // Changed 4 Iso c++ compat
std::strcpy(newBuf, strBufBefore);
std::strcat(newBuf, strBufAfter);
auto str = String(newBuf);
String str = String(newBuf);
free(newBuf);
return str;

@@ -850,7 +850,7 @@ String operator+(const char* const strBufBefore, const String& strAfter) noexcep
char* newBuf = (char*)malloc(sizeof(char) * newBufSize); // Changed 4 Iso c++ compat
std::strcpy(newBuf, strBufBefore);
std::strcat(newBuf, strBufAfter);
auto str = String(newBuf);
String str = String(newBuf);
free(newBuf);
return str;
}


Loading…
Cancel
Save