aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRawk <mattias@klingawallin.se>2013-05-08 19:31:20 +0200
committerRawk <mattias@klingawallin.se>2013-08-26 07:51:18 +0200
commit188d192cb01ed46826cd85e244332dbacaa28d1a (patch)
treefcb67bf8cf1aa7fe7ee9416987d84338099ae2de /lib
parente276ddf16e851acb7adffaa5726cc6aa28969f5b (diff)
Remove GetDirectory(..) without return value
Diffstat (limited to 'lib')
-rw-r--r--lib/UnrarXLib/file.cpp3
-rw-r--r--lib/UnrarXLib/ulinks.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/UnrarXLib/file.cpp b/lib/UnrarXLib/file.cpp
index e2d1074de6..d4289e26f5 100644
--- a/lib/UnrarXLib/file.cpp
+++ b/lib/UnrarXLib/file.cpp
@@ -165,8 +165,7 @@ bool File::Create(const char *Name,const wchar *NameW)
#else
hFile=fopen(Name,CREATEBINARY);
#endif*/
- CStdString strPath;
- URIUtils::GetDirectory(Name,strPath);
+ CStdString strPath = URIUtils::GetDirectory(Name);
CUtil::CreateDirectoryEx(strPath);
m_File.OpenForWrite(Name,true);
NewFile=true;
diff --git a/lib/UnrarXLib/ulinks.cpp b/lib/UnrarXLib/ulinks.cpp
index 49d322226c..247171f152 100644
--- a/lib/UnrarXLib/ulinks.cpp
+++ b/lib/UnrarXLib/ulinks.cpp
@@ -14,8 +14,7 @@ int ExtractLink(ComprDataIO &DataIO,Archive &Arc,char *DestName,uint &LinkCRC,bo
FileName[DataSize]=0;
if (Create)
{
- CStdString strPath;
- URIUtils::GetDirectory(DestName,strPath);
+ CStdString strPath = URIUtils::GetDirectory(DestName);
CUtil::CreateDirectoryEx(strPath);
if (symlink(FileName,DestName)==-1)
{