Bug 1173317 - Change the string argument for Directory::GetName from nsString to nsAString. r=sicking
authorJonathan Watt <jwatt@jwatt.org>
Thu, 04 Jun 2015 13:19:25 +0100
changeset 279798 85e2566207cb84887e4f2809681b790ba6e403a9
parent 279797 a151662e0030b95cec02ee8850564a8f31ce255a
child 279799 cf373ad4512987223fe81f29081b193e68320b42
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs1173317
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1173317 - Change the string argument for Directory::GetName from nsString to nsAString. r=sicking
dom/filesystem/Directory.cpp
dom/filesystem/Directory.h
--- a/dom/filesystem/Directory.cpp
+++ b/dom/filesystem/Directory.cpp
@@ -76,17 +76,17 @@ Directory::GetParentObject() const
 
 JSObject*
 Directory::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
 {
   return DirectoryBinding::Wrap(aCx, this, aGivenProto);
 }
 
 void
-Directory::GetName(nsString& aRetval) const
+Directory::GetName(nsAString& aRetval) const
 {
   aRetval.Truncate();
 
   if (mPath.IsEmpty()) {
     aRetval = mFileSystem->GetRootName();
     return;
   }
 
--- a/dom/filesystem/Directory.h
+++ b/dom/filesystem/Directory.h
@@ -54,17 +54,17 @@ public:
 
   nsPIDOMWindow*
   GetParentObject() const;
 
   virtual JSObject*
   WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
 
   void
-  GetName(nsString& aRetval) const;
+  GetName(nsAString& aRetval) const;
 
   already_AddRefed<Promise>
   CreateFile(const nsAString& aPath, const CreateFileOptions& aOptions,
              ErrorResult& aRv);
 
   already_AddRefed<Promise>
   CreateDirectory(const nsAString& aPath, ErrorResult& aRv);