diff options
author | Rawk <mattias@klingawallin.se> | 2013-05-08 19:31:20 +0200 |
---|---|---|
committer | Rawk <mattias@klingawallin.se> | 2013-08-26 07:51:18 +0200 |
commit | 188d192cb01ed46826cd85e244332dbacaa28d1a (patch) | |
tree | fcb67bf8cf1aa7fe7ee9416987d84338099ae2de /lib | |
parent | e276ddf16e851acb7adffaa5726cc6aa28969f5b (diff) |
Remove GetDirectory(..) without return value
Diffstat (limited to 'lib')
-rw-r--r-- | lib/UnrarXLib/file.cpp | 3 | ||||
-rw-r--r-- | lib/UnrarXLib/ulinks.cpp | 3 |
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) { |