summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 03:51:32 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 03:51:32 +0300
commit90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8 (patch)
treeb6fe4d5494381abfe7800022a67bbdfd2e20f97e /src/utils
parentb0d6ef00eebb7dcd03b051db63840c04243a784d (diff)
downloadmv-90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8.tar.gz
mv-90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8.tar.bz2
mv-90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8.tar.xz
mv-90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8.zip
Remove useless string initialisations.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/stringutils_unittest.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc
index a6c187ac5..354232965 100644
--- a/src/utils/stringutils_unittest.cc
+++ b/src/utils/stringutils_unittest.cc
@@ -224,7 +224,7 @@ TEST_CASE("stringuntils parseNumber 1", "")
TEST_CASE("stringuntils removeToken 1", "")
{
- std::string str = "";
+ std::string str;
REQUIRE(removeToken(str, " ").empty());
REQUIRE(str.empty());
@@ -292,8 +292,8 @@ TEST_CASE("stringuntils removeColors 1", "")
TEST_CASE("stringuntils compareStrI 1", "")
{
- std::string str1 = "";
- std::string str2 = "";
+ std::string str1;
+ std::string str2;
REQUIRE(0 == compareStrI(str1, str2));
str1 = "test";
@@ -326,8 +326,8 @@ TEST_CASE("stringuntils isWordSeparator 1", "")
TEST_CASE("stringuntils findSameSubstring", "")
{
- std::string str1 = "";
- std::string str2 = "";
+ std::string str1;
+ std::string str2;
REQUIRE(findSameSubstring("", "").empty());
@@ -346,8 +346,8 @@ TEST_CASE("stringuntils findSameSubstring", "")
TEST_CASE("stringuntils findSameSubstringI", "")
{
- std::string str1 = "";
- std::string str2 = "";
+ std::string str1;
+ std::string str2;
REQUIRE(findSameSubstringI("", "").empty());
@@ -524,9 +524,9 @@ TEST_CASE("stringuntils getFileDir 1", "")
TEST_CASE("stringuntils replaceAll 1", "")
{
- std::string str1 = "";
- std::string str2 = "";
- std::string str3 = "";
+ std::string str1;
+ std::string str2;
+ std::string str3;
REQUIRE(replaceAll(str1, str2, str3).empty());