Skip to content

Commit ef8d8de

Browse files
committed
Minimise StringUtils.h usage
Signed-off-by: Kevin Wheatley <kevin.wheatley@framestore.com>
1 parent f8885a0 commit ef8d8de

22 files changed

+19
-20
lines changed

include/OpenColorIO/OpenColorIO.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <vector>
1414
#include <cstdint>
1515
#include <map>
16+
#include <functional>
1617

1718
#include "OpenColorABI.h"
1819
#include "OpenColorTypes.h"

src/OpenColorIO/FileRules.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <algorithm>
55
#include <cctype>
66
#include <cstring>
7-
#include <map>
87
#include <regex>
98
#include <sstream>
109

src/OpenColorIO/Mutex.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77

88

99
#include <mutex>
10-
#include <thread>
11-
#include <assert.h>
10+
#include <cassert>
1211

12+
#ifndef NDEBUG
13+
#include <thread>
14+
#endif
1315

1416
/** For internal use only */
1517

src/OpenColorIO/apphelpers/CategoryHelpers.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#ifndef INCLUDED_OCIO_CATEGORY_HELPERS_H
66
#define INCLUDED_OCIO_CATEGORY_HELPERS_H
77

8-
#include <string>
98
#include <vector>
109

1110
#include <OpenColorIO/OpenColorIO.h>

src/OpenColorIO/apphelpers/MixingHelpers.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "CategoryHelpers.h"
1111
#include "ColorSpaceHelpers.h"
1212
#include "MixingHelpers.h"
13-
#include "utils/StringUtils.h"
1413

1514

1615
namespace OCIO_NAMESPACE

src/OpenColorIO/apphelpers/mergeconfigs/MergeConfigsHelpers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <OpenColorIO/OpenColorIO.h>
1515

1616
#include "MergeConfigsHelpers.h"
17+
#include "SectionMerger.h"
1718

1819
#include "Platform.h"
1920
#include "OCIOMYaml.h"

src/OpenColorIO/apphelpers/mergeconfigs/MergeConfigsHelpers.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66
#define INCLUDED_OCIO_MERGE_CONFIG_HELPERS_H
77

88
#include <string>
9-
#include <unordered_map>
109
#include <vector>
1110

1211
#include <OpenColorIO/OpenColorIO.h>
1312

14-
#include "SectionMerger.h"
1513
#include "utils/StringUtils.h"
16-
#include "Logging.h"
1714

1815
namespace OCIO_NAMESPACE
1916
{

src/OpenColorIO/apphelpers/mergeconfigs/SectionMerger.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
#define INCLUDED_OCIO_MERGE_CONFIG_SECTION_MERGER_H
77

88
#include <string>
9-
#include <unordered_map>
109
#include <vector>
10+
#include <functional>
1111

1212
#include <OpenColorIO/OpenColorIO.h>
1313

1414
#include "ConfigUtils.h"
15-
#include "utils/StringUtils.h"
1615
#include "Logging.h"
16+
#include "utils/StringUtils.h"
1717

1818

1919
namespace OCIO_NAMESPACE

src/OpenColorIO/ops/exposurecontrast/ExposureContrastOpGPU.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "Logging.h"
1010
#include "ops/exposurecontrast/ExposureContrastOpGPU.h"
11-
#include "utils/StringUtils.h"
1211

1312

1413
namespace OCIO_NAMESPACE

src/OpenColorIO/ops/gradingtone/GradingToneOpGPU.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include "Logging.h"
88
#include "ops/gradingtone/GradingToneOpGPU.h"
9-
#include "utils/StringUtils.h"
109

1110

1211
namespace OCIO_NAMESPACE

0 commit comments

Comments
 (0)