From 16f755ba2dca01dd6d868e12fe5676146b295e64 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 8 May 2014 10:23:11 +0000
Subject: [PATCH] wtf?

---
 Common/StringUtils.cpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/Common/StringUtils.cpp b/Common/StringUtils.cpp
index 788cb4238f..f609237f6f 100644
--- a/Common/StringUtils.cpp
+++ b/Common/StringUtils.cpp
@@ -96,17 +96,13 @@ std::vector<std::string> SplitFileName(const std::string &fileName)
   int islash = (int)fileName.find_last_of("/\\");
   if(idot == (int)std::string::npos) idot = -1;
   if(islash == (int)std::string::npos) islash = -1;
-  std::string s[3];
+  std::vector<std::string> s(3);
   if(idot > 0)
     s[2] = fileName.substr(idot);
   if(islash > 0)
     s[0] = fileName.substr(0, islash + 1);
   s[1] = fileName.substr(s[0].size(), fileName.size() - s[0].size() - s[2].size());
-  std::vector<std::string> ss;
-  ss.push_back(s[0]);
-  ss.push_back(s[1]);
-  ss.push_back(s[2]);
-  return ss;
+  return s;
 }
 
 std::string GetFileNameWithoutPath(const std::string &fileName)
-- 
GitLab