Commit 4d7ba4f 1 parent abb31c3 commit 4d7ba4f Copy full SHA for 4d7ba4f
File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 13
13
#include " internal/DllExports.h"
14
14
#include " internal/SortedMap.h"
15
15
16
+ #include < array>
16
17
#include < chrono>
17
18
#include < condition_variable>
18
19
#include < coroutine>
@@ -853,7 +854,7 @@ class [[nodiscard("unnecessary construction")]] Object : public std::enable_shar
853
854
private:
854
855
TypeNames _typeNames;
855
856
ResolverMap _resolvers;
856
- std::vector <std::shared_ptr<const Object>> _stitched;
857
+ std::array <std::shared_ptr<const Object>, 2 > _stitched;
857
858
};
858
859
859
860
// Test if this Type inherits from Object.
Original file line number Diff line number Diff line change @@ -1270,17 +1270,15 @@ std::shared_ptr<Object> Object::StitchObject(const std::shared_ptr<const Object>
1270
1270
hasStitchedResolvers = resolvers.emplace (name, resolver).second || hasStitchedResolvers;
1271
1271
}
1272
1272
1273
- std::vector<std::shared_ptr<const Object>> stitched { shared_from_this () };
1273
+ auto object = std::make_shared<Object>(std::move (typeNames), std::move (resolvers));
1274
+
1275
+ object->_stitched [0 ] = shared_from_this ();
1274
1276
1275
1277
if (hasStitchedResolvers)
1276
1278
{
1277
- stitched. push_back ( added) ;
1279
+ object-> _stitched [ 1 ] = added;
1278
1280
}
1279
1281
1280
- auto object = std::make_shared<Object>(std::move (typeNames), std::move (resolvers));
1281
-
1282
- object->_stitched = std::move (stitched);
1283
-
1284
1282
return object;
1285
1283
}
1286
1284
You can’t perform that action at this time.
0 commit comments