From 7a366d85165478eadadc5e8f60704aeb8fe28bcf Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Sat, 15 May 1999 22:01:21 +0000 Subject: [PATCH] Removed string methods from the file widget git-svn-id: svn://10.0.0.236/trunk@31773 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsFileControlFrame.cpp | 6 +++--- mozilla/layout/html/forms/src/nsFileControlFrame.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/forms/nsFileControlFrame.cpp b/mozilla/layout/forms/nsFileControlFrame.cpp index bc4864a578f..42e46dd75f4 100644 --- a/mozilla/layout/forms/nsFileControlFrame.cpp +++ b/mozilla/layout/forms/nsFileControlFrame.cpp @@ -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); } diff --git a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp index bc4864a578f..42e46dd75f4 100644 --- a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp @@ -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); }