COMP: don't user string::clear(), fix warnings about unused variables

Alex
This commit is contained in:
Alexander Neundorf 2007-05-23 08:24:29 -04:00
parent 1d84b36935
commit 526b72e12c
1 changed files with 4 additions and 4 deletions

View File

@ -1237,7 +1237,7 @@ const char* cmTarget::GetDirectory(const char* config, bool implib)
} }
} }
const char* cmTarget::ImportedGetDirectory(const char* config, bool implib) const char* cmTarget::ImportedGetDirectory(const char* config, bool)
{ {
const char* location=this->GetLocation(config); const char* location=this->GetLocation(config);
std::string directory=cmSystemTools::GetFilenamePath(location); std::string directory=cmSystemTools::GetFilenamePath(location);
@ -1693,9 +1693,9 @@ void cmTarget::GetFullNameInternal(TargetType type,
} }
} }
void cmTarget::ImportedGetFullNameInternal(TargetType type, void cmTarget::ImportedGetFullNameInternal(TargetType ,
const char* config, const char* config,
bool implib, bool ,
std::string& outPrefix, std::string& outPrefix,
std::string& outBase, std::string& outBase,
std::string& outSuffix) std::string& outSuffix)
@ -1705,7 +1705,7 @@ void cmTarget::ImportedGetFullNameInternal(TargetType type,
std::string location=this->GetLocation(config); std::string location=this->GetLocation(config);
outBase=cmSystemTools::GetFilenameWithoutExtension(location); outBase=cmSystemTools::GetFilenameWithoutExtension(location);
outSuffix = cmSystemTools::GetFilenameExtension(location); outSuffix = cmSystemTools::GetFilenameExtension(location);
outPrefix.clear(); outPrefix = "";
} }