aboutsummaryrefslogtreecommitdiff
path: root/lib/UnrarXLib
diff options
context:
space:
mode:
authorRawk <mattias@klingawallin.se>2013-05-10 12:20:57 +0200
committerRawk <mattias@klingawallin.se>2013-05-10 13:11:35 +0200
commit0422a979196b47ab60251137b673f76319369edd (patch)
tree55ebd200744f7197a25839398fb0f1c9cc4c25bb /lib/UnrarXLib
parent9a0edc8031e335ef92c153d5a70329be31e2d85c (diff)
Remove GetExtension version without return value
Diffstat (limited to 'lib/UnrarXLib')
-rw-r--r--lib/UnrarXLib/pathfn.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/UnrarXLib/pathfn.cpp b/lib/UnrarXLib/pathfn.cpp
index e47d85d4c5..2da5ea70a4 100644
--- a/lib/UnrarXLib/pathfn.cpp
+++ b/lib/UnrarXLib/pathfn.cpp
@@ -194,15 +194,13 @@ void SetSFXExt(wchar *SFXName)
char *GetExt(const char *Name)
{
- CStdString strExtension;
- URIUtils::GetExtension(Name,strExtension);
+ CStdString strExtension = URIUtils::GetExtension(Name);
return((char *)strstr((char *)Name,strExtension.c_str()));
}
wchar *GetExt(const wchar *Name)
{
- CStdString strExtension;
- URIUtils::GetExtension(Name,strExtension);
+ CStdString strExtension = URIUtils::GetExtension(Name);
return((wchar *)wcsstr((wchar_t *)Name,CStdStringW(strExtension).c_str()));
}