diff options
author | Joakim Plate <elupus@ecce.se> | 2013-09-01 02:41:49 -0700 |
---|---|---|
committer | Joakim Plate <elupus@ecce.se> | 2013-09-01 02:41:49 -0700 |
commit | 801943ffdf5f79ce704f2add9e6292322b5ee34b (patch) | |
tree | f3629f5c554e0d27fd61cff5e681a6fbf3589a90 /lib | |
parent | 390def36d3a8f15c36eac707b0d94e4fe5c39c52 (diff) | |
parent | 188d192cb01ed46826cd85e244332dbacaa28d1a (diff) |
Merge pull request #2707 from Rawk/use_return_value3
Remove URIUtils::GetDirectory(..) function 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) { |