summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/src/common/tvgArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/thorvg/src/common/tvgArray.h')
-rw-r--r--thirdparty/thorvg/src/common/tvgArray.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/thirdparty/thorvg/src/common/tvgArray.h b/thirdparty/thorvg/src/common/tvgArray.h
index 1afc647b68..acb3a41b97 100644
--- a/thirdparty/thorvg/src/common/tvgArray.h
+++ b/thirdparty/thorvg/src/common/tvgArray.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 - 2023 the ThorVG project. All rights reserved.
+ * Copyright (c) 2020 - 2024 the ThorVG project. All rights reserved.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -39,6 +39,11 @@ struct Array
Array(){}
+ Array(int32_t size)
+ {
+ reserve(size);
+ }
+
Array(const Array& rhs)
{
reset();