summaryrefslogtreecommitdiffstats
path: root/src/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util.cpp')
-rw-r--r--src/Util.cpp4
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) == '"')
{