Skip to content

Commit 06e616c

Browse files
committed
removed more unnecessary stuff from public headers
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 35efa4a commit 06e616c

File tree

8 files changed

+23
-24
lines changed

8 files changed

+23
-24
lines changed

config/RAWTOACESConfig.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ if( EXISTS "${RAWTOACES_CMAKE_DIR}/CMakeCache.txt" )
1212
include( "${RAWTOACES_CMAKE_DIR}/RAWTOACESBuildTreeSettings.cmake" )
1313
else()
1414
set( RAWTOACES_INCLUDE_DIRS "${RAWTOACES_CMAKE_DIR}/@CONF_REL_INCLUDE_DIR@" )
15-
endif
15+
endif()
1616

1717
# setup our library dependencies (i.e. ilmbase)
18-
include( "${RAWTOACES_CMAKE_DIR}/RAWTOACESLibraryDepends.cmake" )
18+
# include( "${RAWTOACES_CMAKE_DIR}/RAWTOACESLibraryDepends.cmake" )
1919

2020
set( RAWTOACES_LIBRARIES RAWTOACES )
2121
set( RAWTOACES_EXECUTABLE rawtoaces )

include/rawtoaces/acesrender.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#define _ACESRENDER_h__
5757

5858
#include <rawtoaces/rta.h>
59-
59+
#include <libraw/libraw.h>
6060
#include <unordered_map>
6161

6262
using namespace rta;
@@ -67,8 +67,8 @@ void usage( const char *prog );
6767
class LibRawAces : virtual public LibRaw
6868
{
6969
public:
70-
LibRawAces(){};
71-
~LibRawAces(){};
70+
LibRawAces() {};
71+
~LibRawAces() {};
7272

7373
void show() { printf( "I am here with LibRawAces.\n" ); }
7474
};

include/rawtoaces/define.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@
5555
#define _DEFINE_h__
5656

5757
#include <string>
58+
#include <vector>
5859
#include <algorithm>
59-
#include <boost/filesystem.hpp>
60+
#include <filesystem>
6061

6162
#ifndef WIN32
6263
# include <sys/stat.h>
@@ -357,9 +358,9 @@ inline vector<string> openDir( string path = "." )
357358
{
358359
vector<string> paths;
359360

360-
for ( auto &i: boost::filesystem::directory_iterator( path ) )
361+
for ( auto &i: filesystem::directory_iterator( path ) )
361362
{
362-
if ( i.status().type() != boost::filesystem::file_type::directory_file )
363+
if ( i.status().type() != filesystem::file_type::directory )
363364
paths.push_back( i.path().string() );
364365
}
365366

include/rawtoaces/rta.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@
5858
#include "define.h"
5959

6060
#include <stdint.h>
61-
#include <libraw/libraw.h>
6261

63-
#include "mathOps.h"
6462
#include "metadata.h"
6563

6664
using namespace std;
@@ -69,8 +67,8 @@ namespace rta
6967
{
7068
struct CIEXYZ
7169
{
72-
CIEXYZ(){};
73-
CIEXYZ( double X, double Y, double Z ) : _Xt( X ), _Yt( Y ), _Zt( Z ){};
70+
CIEXYZ() {};
71+
CIEXYZ( double X, double Y, double Z ) : _Xt( X ), _Yt( Y ), _Zt( Z ) {};
7472
double _Xt;
7573
double _Yt;
7674
double _Zt;
@@ -92,9 +90,9 @@ struct CMF
9290

9391
struct RGBSen
9492
{
95-
RGBSen(){};
93+
RGBSen() {};
9694
RGBSen( double R, double G, double B )
97-
: _RSen( R ), _GSen( G ), _BSen( B ){};
95+
: _RSen( R ), _GSen( G ), _BSen( B ) {};
9896

9997
double _RSen;
10098
double _GSen;
@@ -145,7 +143,7 @@ class Spst
145143
: _brand( brand )
146144
, _model( model )
147145
, _increment( increment )
148-
, _rgbsen( rgbsen ){};
146+
, _rgbsen( rgbsen ) {};
149147
~Spst();
150148

151149
void setBrand( const char *brand );

src/rawtoaces_idt/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ target_link_libraries(
1515
PUBLIC
1616
Boost::boost
1717
Boost::system
18-
Boost::filesystem
1918
Imath::Imath
2019
Imath::ImathConfig
2120
)

src/rawtoaces_util/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ endif()
1818
target_link_libraries ( ${RAWTOACESLIB}
1919
PUBLIC
2020
${RAWTOACESIDTLIB}
21+
Boost::filesystem
2122
INTERFACE
2223
Eigen3::Eigen
2324
Imath::Imath

src/rawtoaces_util2/rawtoaces_util.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <rawtoaces/define.h>
77
#include <rawtoaces/metadata.h>
88
#include <rawtoaces/rta.h>
9+
#include <rawtoaces/mathOps.h>
910

1011
#include <OpenImageIO/imageio.h>
1112
#include <OpenImageIO/imagebuf.h>
@@ -296,15 +297,12 @@ bool check_param(
296297
return false;
297298
}
298299

299-
if ( param_value.size() != correct_size )
300-
{
301-
std::cerr << "Warning: The parameter \"" << param_name
302-
<< "\" must have " << correct_size << " values. "
303-
<< default_value_message << std::endl;
300+
std::cerr << "Warning: The parameter \"" << param_name
301+
<< "\" must have " << correct_size << " values. "
302+
<< default_value_message << std::endl;
304303

305-
on_failure();
306-
return false;
307-
}
304+
on_failure();
305+
return false;
308306
}
309307
}
310308
else

unittest/testDNGIdt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
#include <boost/filesystem.hpp>
5858
#include <boost/test/floating_point_comparison.hpp>
5959

60+
#include <libraw/libraw.h>
61+
6062
#include <rawtoaces/rta.h>
6163

6264
using namespace std;

0 commit comments

Comments
 (0)