From c62afc8bf1c3cbfbf7f4dd116bdb11275636648c Mon Sep 17 00:00:00 2001
From: Jonathan Schleifer <js@webkeks.org>
Date: Sun, 12 Jan 2014 00:17:17 +0100
Subject: [PATCH 3/6] udf: Move constant to header.
This way, it is a compile time constant and Clang does no longer
complain about dynamic arrays of non-POD types.
---
src/add-ons/kernel/file_systems/udf/UdfStructures.cpp | 2 --
src/add-ons/kernel/file_systems/udf/UdfStructures.h | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/add-ons/kernel/file_systems/udf/UdfStructures.cpp b/src/add-ons/kernel/file_systems/udf/UdfStructures.cpp
index 68e851d..175204d 100644
a
|
b
|
implementation_use_descriptor::dump() const
|
685 | 685 | // partition_descriptor |
686 | 686 | //---------------------------------------------------------------------- |
687 | 687 | |
688 | | const uint8 kMaxPartitionDescriptors = 2; |
689 | | |
690 | 688 | void |
691 | 689 | partition_descriptor::dump() const |
692 | 690 | { |
diff --git a/src/add-ons/kernel/file_systems/udf/UdfStructures.h b/src/add-ons/kernel/file_systems/udf/UdfStructures.h
index 1f2634e..e93cb18 100644
a
|
b
|
private:
|
935 | 935 | /*! \brief Maximum number of partition descriptors to be found in volume |
936 | 936 | descriptor sequence, per UDF-2.50 |
937 | 937 | */ |
938 | | extern const uint8 kMaxPartitionDescriptors; |
| 938 | static const uint8 kMaxPartitionDescriptors = 2; |
939 | 939 | #define UDF_MAX_PARTITION_MAPS 2 |
940 | 940 | #define UDF_MAX_PARTITION_MAP_SIZE 64 |
941 | 941 | |