Bug 609632 - Build bustage fix; a=bustage
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 15 Nov 2010 18:01:45 -0500
changeset 57551 9ca8a80bd900e28941aea8d89eb4c365631bd6e1
parent 57550 344597f66c3ef020d722bf98b4a1cfb411ef4476
child 57552 d81f20da03b841fd540b4fdaf7d2a60fc5fb8df9
push idunknown
push userunknown
push dateunknown
reviewersbustage
bugs609632
milestone2.0b8pre
Bug 609632 - Build bustage fix; a=bustage
editor/libeditor/html/nsHTMLDataTransfer.cpp
--- a/editor/libeditor/html/nsHTMLDataTransfer.cpp
+++ b/editor/libeditor/html/nsHTMLDataTransfer.cpp
@@ -85,16 +85,17 @@
 #include "nsISupportsPrimitives.h"
 #include "nsLinebreakConverter.h"
 #include "nsIFragmentContentSink.h"
 #include "nsIContentSink.h"
 
 // netwerk
 #include "nsIURI.h"
 #include "nsNetUtil.h"
+#include "nsIMIMEService.h"
 
 // Drag & Drop, Clipboard
 #include "nsIClipboard.h"
 #include "nsITransferable.h"
 #include "nsIDragService.h"
 #include "nsIDOMNSUIEvent.h"
 #include "nsIOutputStream.h"
 #include "nsIInputStream.h"
@@ -1326,17 +1327,17 @@ NS_IMETHODIMP nsHTMLEditor::InsertFromTr
     nsCOMPtr<nsIURI> fileURI;
     if (0 == nsCRT::strcmp(bestFlavor, kFileMime))
     {
       nsCOMPtr<nsIFile> fileObj(do_QueryInterface(genericDataObj));
       if (fileObj && len > 0)
       {
         nsCOMPtr<nsIMIMEService> mime = do_GetService("@mozilla.org/mime;1");
         NS_ENSURE_TRUE(mime, NS_ERROR_FAILURE);
-        nsAutoCString contentType;
+        nsCString contentType;
         rv = mime->GetTypeFromFile(fileObj, contentType);
         NS_ENSURE_SUCCESS(rv, rv);
 
         // Accept any image type fed to us
         if (StringBeginsWith(contentType, NS_LITERAL_CSTRING("image/"))) {
           insertAsImage = PR_TRUE;
           bestFlavor = contentType;
         }