Removed string methods from the file widget

This commit is contained in:
mcmullen%netscape.com 1999-05-15 22:01:21 +00:00
parent efabc74635
commit e1a1ecdf59
2 changed files with 6 additions and 6 deletions

View File

@ -161,9 +161,9 @@ void nsFileControlFrame::MouseClicked(nsIPresContext* aPresContext)
result = fileWidget->Show();
if (result) {
nsString fileName;
fileWidget->GetFile(fileName);
mTextFrame->SetProperty(nsHTMLAtoms::value,fileName);
nsFileSpec fileSpec;
fileWidget->GetFile(fileSpec);
mTextFrame->SetProperty(nsHTMLAtoms::value,fileSpec.GetNativePathCString());
}
NS_RELEASE(fileWidget);
}

View File

@ -161,9 +161,9 @@ void nsFileControlFrame::MouseClicked(nsIPresContext* aPresContext)
result = fileWidget->Show();
if (result) {
nsString fileName;
fileWidget->GetFile(fileName);
mTextFrame->SetProperty(nsHTMLAtoms::value,fileName);
nsFileSpec fileSpec;
fileWidget->GetFile(fileSpec);
mTextFrame->SetProperty(nsHTMLAtoms::value,fileSpec.GetNativePathCString());
}
NS_RELEASE(fileWidget);
}