mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Remove duplicate and shadow variables.
This commit is contained in:
committed by
Vinnie Falco
parent
ea5fe35b54
commit
874b685a83
@@ -63,8 +63,7 @@ File File::getSpecialLocation (const SpecialLocationType type)
|
||||
case userHomeDirectory:
|
||||
{
|
||||
const char* homeDir = getenv ("HOME");
|
||||
|
||||
if (const char* homeDir = getenv ("HOME"))
|
||||
if (homeDir)
|
||||
return File (CharPointer_UTF8 (homeDir));
|
||||
|
||||
if (struct passwd* const pw = getpwuid (getuid()))
|
||||
@@ -166,8 +165,8 @@ private:
|
||||
DIR* dir;
|
||||
};
|
||||
|
||||
DirectoryIterator::NativeIterator::NativeIterator (const File& directory, const String& wildCard)
|
||||
: pimpl (new DirectoryIterator::NativeIterator::Pimpl (directory, wildCard))
|
||||
DirectoryIterator::NativeIterator::NativeIterator (const File& directory, const String& wildCard_)
|
||||
: pimpl (new DirectoryIterator::NativeIterator::Pimpl (directory, wildCard_))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user