From cdc6637443f426c9ab0eda703f423c5bf36d783b Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Tue, 27 Jan 2015 08:37:38 +1100 Subject: [PATCH] Bug 1124029 - Suppress different __unaligned qualifiers warnings. r=froydnj --HG-- extra : source : e854844083bcb065d649eea337c558f05291a647 extra : histedit_source : 9563e1ccb80018ade7b7f21f563bdf6954f13e35 --- xpcom/io/nsLocalFileWin.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 6b69e6d05a1a..cacde9ae0966 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -154,7 +154,8 @@ private: HRESULT hr; if (attributes & FILE_ATTRIBUTE_DIRECTORY) { // We have a directory so we should open the directory itself. - ITEMIDLIST* dir = ILCreateFromPathW(mResolvedPath.get()); + ITEMIDLIST* dir = + static_cast(ILCreateFromPathW(mResolvedPath.get())); if (!dir) { return NS_ERROR_FAILURE; } @@ -177,13 +178,15 @@ private: PathRemoveFileSpecW(parentDirectoryPath); // We have a file so we should open the parent directory. - ITEMIDLIST* dir = ILCreateFromPathW(parentDirectoryPath); + ITEMIDLIST* dir = + static_cast(ILCreateFromPathW(parentDirectoryPath)); if (!dir) { return NS_ERROR_FAILURE; } // Set the item in the directory to select to the file we want to reveal. - ITEMIDLIST* item = ILCreateFromPathW(mResolvedPath.get()); + ITEMIDLIST* item = + static_cast(ILCreateFromPathW(mResolvedPath.get())); if (!item) { CoTaskMemFree(dir); return NS_ERROR_FAILURE;