Trying to make this build on unix gcc compilers, I have removed all references to std::string, using char* instead. This almost made me cry (not just because of all the work I had to do over again).

This commit is contained in:
mcmullen@netscape.com
1998-12-09 08:47:30 +00:00
parent 08eaf2c745
commit 81330acfd9
12 changed files with 884 additions and 578 deletions

View File

@@ -20,16 +20,23 @@
// implementations.
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::SetLeafName(const string& inLeafName)
void nsNativeFileSpec::SetLeafName(const char* inLeafName)
//----------------------------------------------------------------------------------------
{
nsFileHelpers::LeafReplace(mPath, '/', inLeafName);
} // nsNativeFileSpec::SetLeafName
//----------------------------------------------------------------------------------------
string nsNativeFileSpec::GetLeafName() const
char* nsNativeFileSpec::GetLeafName() const
//----------------------------------------------------------------------------------------
{
return nsFileHelpers::GetLeaf(mPath, '/');
} // nsNativeFileSpec::GetLeafName
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::Exists() const
//----------------------------------------------------------------------------------------
{
return false; // fixme
} // nsNativeFileSpec::Exists