Bug 1102048 (Part 39, decoders/icon) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth

This commit is contained in:
Glenn Randers-Pehrson 2015-04-06 19:12:00 -07:00
parent f2b4370c06
commit a14d796c5f
8 changed files with 24 additions and 24 deletions

View File

@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsIconChannel_h_
#define nsIconChannel_h_
#ifndef mozilla_image_decoders_icon_android_nsIconChannel_h
#define mozilla_image_decoders_icon_android_nsIconChannel_h
#include "mozilla/Attributes.h"
@ -43,4 +43,4 @@ class nsIconChannel final : public nsIChannel {
nsCOMPtr<nsIChannel> mRealChannel;
};
#endif
#endif // mozilla_image_decoders_icon_android_nsIconChannel_h

View File

@ -2,8 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsIconChannel_h_
#define nsIconChannel_h_
#ifndef mozilla_image_decoders_icon_gtk_nsIconChannel_h
#define mozilla_image_decoders_icon_gtk_nsIconChannel_h
#include "mozilla/Attributes.h"
@ -40,4 +40,4 @@ class nsIconChannel final : public nsIChannel
nsresult InitWithGIO(nsIMozIconURI* aIconURI);
};
#endif
#endif // mozilla_image_decoders_icon_gtk_nsIconChannel_h

View File

@ -4,8 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsIconChannel_h___
#define nsIconChannel_h___
#ifndef mozilla_image_encoders_icon_mac_nsIconChannel_h
#define mozilla_image_encoders_icon_mac_nsIconChannel_h
#include "mozilla/Attributes.h"
@ -56,4 +56,4 @@ protected:
nsACString& aFileExtension);
};
#endif /* nsIconChannel_h___ */
#endif // mozilla_image_encoders_icon_mac_nsIconChannel_h

View File

@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsIconProtocolHandler_h___
#define nsIconProtocolHandler_h___
#ifndef mozilla_image_decoders_icon_nsIconProtocolHandler_h
#define mozilla_image_decoders_icon_nsIconProtocolHandler_h
#include "nsWeakReference.h"
#include "nsIProtocolHandler.h"
@ -23,4 +23,4 @@ protected:
virtual ~nsIconProtocolHandler();
};
#endif /* nsIconProtocolHandler_h___ */
#endif // mozilla_image_decoders_icon_nsIconProtocolHandler_h

View File

@ -341,7 +341,7 @@ nsMozIconURI::SetHost(const nsACString& aHost)
}
NS_IMETHODIMP
nsMozIconURI::GetPort(int32_t *aPort)
nsMozIconURI::GetPort(int32_t* aPort)
{
return NS_ERROR_FAILURE;
}
@ -379,7 +379,7 @@ nsMozIconURI::SetRef(const nsACString& aRef)
}
NS_IMETHODIMP
nsMozIconURI::Equals(nsIURI *other, bool* result)
nsMozIconURI::Equals(nsIURI* other, bool* result)
{
NS_ENSURE_ARG_POINTER(other);
NS_PRECONDITION(result, "null pointer");
@ -498,7 +498,7 @@ nsMozIconURI::SetIconURL(nsIURL* aFileUrl)
}
NS_IMETHODIMP
nsMozIconURI::GetImageSize(uint32_t * aImageSize)
nsMozIconURI::GetImageSize(uint32_t* aImageSize)
// measured by # of pixels in a row. defaults to 16.
{
*aImageSize = mSize;

View File

@ -4,8 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsMozIconURI_h__
#define nsMozIconURI_h__
#ifndef mozilla_image_decoders_icon_nsIconURI_h
#define mozilla_image_decoders_icon_nsIconURI_h
#include "nsIIconURI.h"
#include "nsCOMPtr.h"
@ -40,4 +40,4 @@ protected:
// kStateStrings
};
#endif // nsMozIconURI_h__
#endif // mozilla_image_decoders_icon_nsIconURI_h

View File

@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsIconChannel_h_
#define nsIconChannel_h_
#ifndef mozilla_image_encoders_icon_qt_nsIconChannel_h
#define mozilla_image_encoders_icon_qt_nsIconChannel_h
#include "mozilla/Attributes.h"
@ -37,4 +37,4 @@ class nsIconChannel final : public nsIChannel {
nsCOMPtr<nsIChannel> mRealChannel;
};
#endif
#endif // mozilla_image_encoders_icon_qt_nsIconChannel_h

View File

@ -4,8 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsIconChannel_h___
#define nsIconChannel_h___
#ifndef mozilla_image_encoders_icon_win_nsIconChannel_h
#define mozilla_image_encoders_icon_win_nsIconChannel_h
#include "mozilla/Attributes.h"
@ -63,4 +63,4 @@ protected:
nsresult GetStockHIcon(nsIMozIconURI* aIconURI, HICON* hIcon);
};
#endif /* nsIconChannel_h___ */
#endif // mozilla_image_encoders_icon_win_nsIconChannel_h