diff options
Diffstat (limited to 'src/Util.cpp')
| -rw-r--r-- | src/Util.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Util.cpp b/src/Util.cpp index 4db3773..78dd8d2 100644 --- a/src/Util.cpp +++ b/src/Util.cpp @@ -1,8 +1,10 @@ #include "Util.hpp" namespace Util { - QString& trimQuotes(QString&& string, bool& trimmed) + QString trimQuotes(QString string, bool& trimmed) { + if(string.isEmpty()) return string; + trimmed = false; if(string.length() >= 2 && string.at(0) == '"' && string.at(string.length() - 1) == '"') { |
