Bug 1659226 - Run clang-format on nsCUPSShim.h r=hiro
authorErik Nordin <nordzilla@mozilla.com>
Mon, 17 Aug 2020 17:39:17 +0000
changeset 609609 fbc15c1e85f522f6c95fc72b5ba75c72f3cb8e0e
parent 609608 3e6bbd9c48bc8f8690617e21894dc5a05964a9be
child 609610 b70a32173d7ccb59fafd3a29a73a782811279a6e
push id13553
push userffxbld-merge
push dateMon, 24 Aug 2020 12:51:36 +0000
treeherdermozilla-beta@a54f8b5d0977 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershiro
bugs1659226
milestone81.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 1659226 - Run clang-format on nsCUPSShim.h r=hiro Differential Revision: https://phabricator.services.mozilla.com/D87152
widget/nsCUPSShim.h
--- a/widget/nsCUPSShim.h
+++ b/widget/nsCUPSShim.h
@@ -16,19 +16,17 @@
 #  define CUPS_SHIM_RUNTIME_LINK
 #endif
 
 struct PRLibrary;
 
 /* Note: this class relies on static initialization. */
 class nsCUPSShim {
  public:
-  bool EnsureInitialized() {
-    return mInited || Init();
-  }
+  bool EnsureInitialized() { return mInited || Init(); }
 
   /**
    * Function pointers for supported functions. These are only
    * valid after successful initialization.
    */
 #define CUPS_SHIM_ALL_FUNCS(X) \
   X(cupsAddOption)             \
   X(cupsCheckDestSupported)    \
@@ -70,16 +68,16 @@ class nsCUPSShim {
    *         true  for successful initialization.
    */
   bool Init();
 
   // We can try to get initialized from multiple threads at the same time, this
   // boolean and the mutex below make it safe.
   //
   // The boolean can't be Relaxed, because it guards our function pointers.
-  mozilla::Atomic<bool, mozilla::ReleaseAcquire> mInited {false};
+  mozilla::Atomic<bool, mozilla::ReleaseAcquire> mInited{false};
 #ifdef CUPS_SHIM_RUNTIME_LINK
-  mozilla::OffTheBooksMutex mInitMutex {"nsCUPSShim::mInitMutex"};
+  mozilla::OffTheBooksMutex mInitMutex{"nsCUPSShim::mInitMutex"};
   PRLibrary* mCupsLib;
 #endif
 };
 
 #endif /* nsCUPSShim_h___ */