Skip to content

Commit 55b7374

Browse files
committed
more header reductions and forward declarations
Signed-off-by: Rosen Penev <[email protected]>
1 parent c38342f commit 55b7374

File tree

14 files changed

+15
-27
lines changed

14 files changed

+15
-27
lines changed

include/exiv2/basicio.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef EXIV2_BASICIO_HPP
44
#define EXIV2_BASICIO_HPP
55

6-
#include "config.h"
7-
86
// *****************************************************************************
97
#include "exiv2lib_export.h"
108

include/exiv2/bmffimage.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef EXIV2_BMFFIMAGE_HPP
44
#define EXIV2_BMFFIMAGE_HPP
55

6-
#include "config.h"
7-
86
// *****************************************************************************
97
#include "exiv2lib_export.h"
108

include/exiv2/exif.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// *****************************************************************************
1414
#include "exiv2lib_export.h"
1515

16-
#include "config.h"
17-
1816
// included header files
1917
#include "config.h"
2018
#include "metadatum.hpp"

include/exiv2/image.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef EXIV2_IMAGE_HPP
44
#define EXIV2_IMAGE_HPP
55

6-
#include "config.h"
7-
86
// *****************************************************************************
97
#include "exiv2lib_export.h"
108

src/image_int.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
#include "config.h"
4-
53
#include "image_int.hpp"
64

75
#include <cstddef>

src/jpgimage.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "image_int.hpp"
1212
#include "jpgimage.hpp"
1313
#include "photoshop.hpp"
14-
#include "safe_op.hpp"
1514
#include "tags_int.hpp"
1615

1716
#include <array>

src/olympusmn_int.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include "utils.hpp"
1313
#include "value.hpp"
1414

15-
#include <array>
16-
1715
// *****************************************************************************
1816
// class member definitions
1917
namespace Exiv2::Internal {

src/pgfimage.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "image.hpp"
1212

1313
#include <array>
14-
#include <bit>
1514

1615
#ifdef EXIV2_DEBUG_MESSAGES
1716
#include <iostream>

src/pngchunk_int.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

33
// included header files
4+
#include "pngchunk_int.hpp"
45
#include "config.h"
56

67
#ifdef EXV_HAVE_LIBZ
@@ -14,7 +15,6 @@
1415
#include "image_int.hpp"
1516
#include "iptc.hpp"
1617
#include "photoshop.hpp"
17-
#include "pngchunk_int.hpp"
1818
#include "safe_op.hpp"
1919
#include "tiffimage.hpp"
2020

src/pngchunk_int.hpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55

66
// *****************************************************************************
77
// included header files
8-
#include "pngimage.hpp"
8+
#include "types.hpp"
99

1010
// *****************************************************************************
1111
// namespace extensions
12-
namespace Exiv2::Internal {
12+
namespace Exiv2 {
13+
struct DataBuf;
14+
class Image;
15+
class PngImage;
16+
namespace Internal {
1317
// *****************************************************************************
1418
// class definitions
1519

@@ -136,6 +140,7 @@ class PngChunk {
136140

137141
}; // class PngChunk
138142

139-
} // namespace Exiv2::Internal
143+
} // namespace Internal
144+
} // namespace Exiv2
140145

141146
#endif // #ifndef PNGCHUNK_INT_HPP_

0 commit comments

Comments
 (0)