mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Removed string methods from the file widget
This commit is contained in:
parent
efabc74635
commit
e1a1ecdf59
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user