Skip to content

Commit 651d733

Browse files
committed
1 parent 0acd64b commit 651d733

File tree

12 files changed

+43
-91
lines changed

12 files changed

+43
-91
lines changed

Examples/Sources/cxx_example/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "opentime/timeRange.h"
99
#include "opentimelineio/optional.h"
1010

11-
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
11+
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;
1212

1313
otio::SerializableObject* create_stuff() {
1414
auto x = new otio::SerializableObjectWithMetadata;
@@ -20,7 +20,7 @@ otio::SerializableObject* create_stuff() {
2020
x->metadata()["stuff4"] = 3.14159;
2121
x->metadata()["stuff5"] = opentime::RationalTime();
2222
x->metadata()["stuff6"] = opentime::TimeRange();
23-
23+
2424
otio::AnyVector junk;
2525
junk.push_back(13);
2626
junk.push_back("hello");
@@ -34,4 +34,3 @@ int main() {
3434
std::string s = so->to_json_string(&status);
3535
printf("%s\n", s.c_str());
3636
}
37-

OpenTimelineIO

Package.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ let package = Package(
3636
exclude: ["CMakeLists.txt", "OpenTimeConfig.cmake.in", "version.h.in"],
3737
sources: ["."],
3838
publicHeadersPath: ".",
39-
cxxSettings: [
40-
.headerSearchPath("."),
41-
.headerSearchPath("../../../Sources/cpp")]),
39+
cxxSettings: [.headerSearchPath(".")]),
4240

4341
.target(name: "OpenTimelineIO_CXX",
4442
dependencies: ["OpenTime_CXX"],

Sources/cpp/opentime/version.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

Sources/cpp/opentimelineio/version.h

Lines changed: 0 additions & 29 deletions
This file was deleted.

Sources/objc/include/CxxAnyDictionaryMutationStamp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#if defined(__cplusplus)
1414
#import <opentimelineio/anyDictionary.h>
15-
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
15+
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;
1616
#endif
1717

1818
NS_ASSUME_NONNULL_BEGIN

Sources/objc/include/CxxAnyVectorMutationStamp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#if defined(__cplusplus)
1414
#import <opentimelineio/anyVector.h>
15-
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
15+
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;
1616
#endif
1717

1818
NS_ASSUME_NONNULL_BEGIN

Sources/objc/include/CxxRetainer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#if defined(__cplusplus)
1111
#import <opentimelineio/serializableObject.h>
12-
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
12+
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;
1313
#endif
1414

1515
NS_ASSUME_NONNULL_BEGIN

Sources/objc/include/CxxVectorProperty.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010

1111
#if defined(__cplusplus)
1212
#import <opentimelineio/serializableObject.h>
13-
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
13+
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;
1414

1515
class CxxSOVectorBase {
1616
public:
1717
CxxSOVectorBase();
1818
CxxSOVectorBase& operator=(CxxSOVectorBase const&) = delete;
1919
CxxSOVectorBase(CxxSOVectorBase const&) = delete;
2020
virtual ~CxxSOVectorBase();
21-
21+
2222
virtual otio::SerializableObject* _Nullable fetch(int index) = 0;
2323
virtual int size() = 0;
2424
virtual void clear() = 0;
25-
25+
2626
virtual void store(int index, otio::SerializableObject* _Nonnull) = 0;
2727
virtual void moveIndex(int fromIndex, int toIndex) = 0;
2828
virtual void removeAtEnd() = 0;
@@ -38,25 +38,25 @@ class CxxSOVector : public CxxSOVectorBase {
3838
: _v{* new std::vector<otio::SerializableObject::Retainer<T>>}, _owner{true}
3939
{
4040
}
41-
41+
4242
CxxSOVector(std::vector<otio::SerializableObject::Retainer<T>>& v)
4343
: _v{v}, _owner{false} {
4444
}
4545

4646
virtual otio::SerializableObject* _Nullable fetch(int index) {
4747
return index < _v.size() ? _v[index] : nullptr;
4848
}
49-
49+
5050
virtual int size() {
5151
return int(_v.size());
5252
}
53-
53+
5454
virtual ~CxxSOVector() {
5555
if (_owner) {
5656
delete &_v;
5757
}
5858
}
59-
59+
6060
virtual void clear() {
6161
_v.clear();
6262
}
@@ -69,19 +69,19 @@ class CxxSOVector : public CxxSOVectorBase {
6969
_v.emplace_back(otio::SerializableObject::Retainer<T>((T*)so));
7070
}
7171
}
72-
72+
7373
virtual void moveIndex(int fromIndex, int toIndex) {
7474
std::swap(_v[fromIndex], _v[toIndex]);
7575
}
76-
76+
7777
virtual void append(otio::SerializableObject* _Nonnull so) {
7878
_v.emplace_back(otio::SerializableObject::Retainer<T>((T*)so));
7979
}
80-
80+
8181
virtual void removeAtEnd() {
8282
_v.pop_back();
8383
}
84-
84+
8585
virtual void shrinkOrGrow(int n, bool grow) {
8686
if (grow) {
8787
for (int i = 0; i < n; i++) {
@@ -93,13 +93,13 @@ class CxxSOVector : public CxxSOVectorBase {
9393
_v.clear();
9494
return;
9595
}
96-
96+
9797
for (int i = 0; i < n; i++) {
9898
_v.pop_back();
9999
}
100100
}
101101
}
102-
102+
103103
virtual void setContents(CxxSOVectorBase* _Nonnull src, bool destroyingSrc) {
104104
CxxSOVector* typedSrc = (CxxSOVector*) src;
105105
if (destroyingSrc) {

Sources/objc/include/opentime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ typedef struct CxxNonsense {
2828
#import <opentime/timeRange.h>
2929
#import <opentime/timeTransform.h>
3030

31-
namespace ot = opentime::OPENTIME_VERSION;
31+
namespace ot = opentime::OPENTIME_VERSION_NS;
3232

3333
inline ot::RationalTime const& otioRationalTime(CxxRationalTime const& rt) {
3434
return *((ot::RationalTime const*)(&rt));

0 commit comments

Comments
 (0)