aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2013-09-01 02:41:49 -0700
committerJoakim Plate <elupus@ecce.se>2013-09-01 02:41:49 -0700
commit801943ffdf5f79ce704f2add9e6292322b5ee34b (patch)
treef3629f5c554e0d27fd61cff5e681a6fbf3589a90 /lib
parent390def36d3a8f15c36eac707b0d94e4fe5c39c52 (diff)
parent188d192cb01ed46826cd85e244332dbacaa28d1a (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.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)
{