1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-29 16:58:28 +00:00

Issue #1769 - Part 2 Follow-up: Do not use namespace parent::child {} for defining nested namespaces.

It doesn't build for MSVC on Windows. Also other decoders are using the old
 way for defining nested namespaces, so better be consistent here.
This commit is contained in:
Job Bautista
2022-06-22 11:22:19 +08:00
committed by roytam1
parent 00a5d64018
commit 134c5e94e8
3 changed files with 12 additions and 6 deletions
+4 -2
View File
@@ -15,7 +15,8 @@
#include "nsCOMPtr.h"
#include "SurfaceFlags.h"
namespace mozilla::image {
namespace mozilla {
namespace image {
class Decoder;
class IDecodingTask;
@@ -200,6 +201,7 @@ private:
bool aIsRedecode);
};
} // namespace mozilla::image
} // namespace image
} // namespace mozilla
#endif // mozilla_image_DecoderFactory_h
+4 -2
View File
@@ -17,7 +17,8 @@
using namespace mozilla::gfx;
namespace mozilla::image {
namespace mozilla {
namespace image {
#define JXL_TRY(expr) \
do { \
@@ -162,4 +163,5 @@ nsJXLDecoder::FinishedJXLData()
return Transition::TerminateFailure();
}
} // namespace mozilla::image
} // namespace image
} // namespace mozilla
+4 -2
View File
@@ -13,7 +13,8 @@
#include "jxl/decode_cxx.h"
#include "jxl/thread_parallel_runner_cxx.h"
namespace mozilla::image {
namespace mozilla {
namespace image {
class RasterImage;
class nsJXLDecoder final : public Decoder {
@@ -45,6 +46,7 @@ class nsJXLDecoder final : public Decoder {
JxlBasicInfo mInfo{};
};
} // namespace mozilla::image
} // namespace image
} // namespace mozilla
#endif // mozilla_image_decoders_nsJXLDecoder_h