- Fixed various instances of unused variables, accessing arrays out of bounds, initialization of non-primitive members in constructor's body, dead code, passing parameters by value instead of reference, usage of uninitialized variables, as reported by cppcheck.
This commit is contained in:
parent
8e1b1aa201
commit
322742d4b1
28 changed files with 72 additions and 92 deletions
|
|
@ -55,10 +55,9 @@ DArgs::DArgs()
|
|||
//
|
||||
//===========================================================================
|
||||
|
||||
DArgs::DArgs(const DArgs &other)
|
||||
: DObject()
|
||||
DArgs::DArgs(const DArgs &other):Argv(other.Argv),
|
||||
DObject()
|
||||
{
|
||||
Argv = other.Argv;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
@ -263,7 +262,6 @@ void DArgs::RemoveArgs(const char *check)
|
|||
const char *DArgs::GetArg(int arg) const
|
||||
{
|
||||
return ((unsigned)arg < Argv.Size()) ? Argv[arg].GetChars() : NULL;
|
||||
return Argv[arg];
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
@ -351,7 +349,6 @@ void DArgs::RemoveArg(int argindex)
|
|||
void DArgs::CollectFiles(const char *param, const char *extension)
|
||||
{
|
||||
TArray<FString> work;
|
||||
DArgs *out = new DArgs;
|
||||
unsigned int i;
|
||||
size_t extlen = extension == NULL ? 0 : strlen(extension);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue