aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@gmail.com>2018-06-08 18:55:11 +0200
committerMax Kellermann <max.kellermann@gmail.com>2018-06-13 12:38:09 +0200
commitb6cf440b23b730e9ede96303735330521da9514d (patch)
tree5f452c96d0d6e90dbc8986950aafb014c788725e
parent56a95446d0d1c56dd18be59de4e2729c271b234e (diff)
util/URIUtils: remove useless const qualifiers from return values
-rw-r--r--xbmc/utils/URIUtils.cpp4
-rw-r--r--xbmc/utils/URIUtils.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/xbmc/utils/URIUtils.cpp b/xbmc/utils/URIUtils.cpp
index b31c994b62..e26c8e736c 100644
--- a/xbmc/utils/URIUtils.cpp
+++ b/xbmc/utils/URIUtils.cpp
@@ -175,14 +175,14 @@ std::string URIUtils::ReplaceExtension(const std::string& strFile,
return strChangedFile;
}
-const std::string URIUtils::GetFileName(const CURL& url)
+std::string URIUtils::GetFileName(const CURL& url)
{
return GetFileName(url.GetFileName());
}
/* returns a filename given an url */
/* handles both / and \, and options in urls*/
-const std::string URIUtils::GetFileName(const std::string& strFileNameAndPath)
+std::string URIUtils::GetFileName(const std::string& strFileNameAndPath)
{
if(IsURL(strFileNameAndPath))
{
diff --git a/xbmc/utils/URIUtils.h b/xbmc/utils/URIUtils.h
index 1cf8c21fab..9a7fe473fd 100644
--- a/xbmc/utils/URIUtils.h
+++ b/xbmc/utils/URIUtils.h
@@ -33,8 +33,8 @@ public:
static std::string GetDirectory(const std::string &strFilePath);
- static const std::string GetFileName(const CURL& url);
- static const std::string GetFileName(const std::string& strFileNameAndPath);
+ static std::string GetFileName(const CURL& url);
+ static std::string GetFileName(const std::string& strFileNameAndPath);
static std::string GetExtension(const CURL& url);
static std::string GetExtension(const std::string& strFileName);