Skip to content

Commit

Permalink
Bug 1102048 (Part 26) - Make image/src files comply with the Mozilla …
Browse files Browse the repository at this point in the history
…Coding Style Guide. r=seth
  • Loading branch information
glennrp committed Jan 10, 2015
1 parent c65555f commit e7d0ccc
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions image/public/ImageLogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ImageLogging_h
#define ImageLogging_h
#ifndef mozilla_image_public_ImageLogging_h
#define mozilla_image_public_ImageLogging_h

#include "prlog.h"
#include "prinrval.h"
Expand Down Expand Up @@ -77,8 +77,8 @@ class LogScope {
paramName, paramValue));
}


~LogScope() {
~LogScope()
{
PR_LOG(mLog, PR_LOG_DEBUG, ("%d [this=%p] %s {EXIT}\n",
GIVE_ME_MS_NOW(), mFrom, mFunc));
}
Expand All @@ -89,7 +89,6 @@ class LogScope {
const char* mFunc;
};


class LogFunc {
public:
LogFunc(PRLogModuleInfo* aLog, void* from, const char* fn)
Expand Down Expand Up @@ -156,8 +155,6 @@ class LogMessage {

#define LOG_STATIC_FUNC_WITH_PARAM(l, s, pn, pv) LogFunc(l, nullptr, s, pn, pv)



#define LOG_MSG(l, s, m) LogMessage(l, this, s, m)

#else
Expand All @@ -174,4 +171,4 @@ class LogMessage {

#define LOG_MSG_WITH_PARAM LOG_FUNC_WITH_PARAM

#endif // ifndef ImageLogging_h
#endif // mozilla_image_public_ImageLogging_h

0 comments on commit e7d0ccc

Please sign in to comment.