aboutsummaryrefslogtreecommitdiffstats
path: root/utils/makemhr
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-15 22:35:52 -0800
committerChris Robinson <[email protected]>2022-12-15 22:35:52 -0800
commit8b806c07d716db41e0a463d455cf1a913b933a0f (patch)
tree7e4516e8f6e79abbbd06dff84ad2a1d0a4f161a6 /utils/makemhr
parent2bd11bafa4b36977c9d467d5e2d735a8eba1b336 (diff)
Avoid extraneous temporaries when filling vectors
Diffstat (limited to 'utils/makemhr')
-rw-r--r--utils/makemhr/makemhr.cpp2
-rw-r--r--utils/makemhr/makemhr.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/utils/makemhr/makemhr.cpp b/utils/makemhr/makemhr.cpp
index be655bc6..b9d1b84a 100644
--- a/utils/makemhr/makemhr.cpp
+++ b/utils/makemhr/makemhr.cpp
@@ -109,6 +109,8 @@ using namespace std::placeholders;
#endif
+HrirDataT::~HrirDataT() = default;
+
// Head model used for calculating the impulse delays.
enum HeadModelT {
HM_NONE,
diff --git a/utils/makemhr/makemhr.h b/utils/makemhr/makemhr.h
index ce21af1d..24607723 100644
--- a/utils/makemhr/makemhr.h
+++ b/utils/makemhr/makemhr.h
@@ -105,6 +105,9 @@ struct HrirDataT {
std::vector<HrirAzT> mAzsBase;
std::vector<HrirFdT> mFds;
+
+ /* GCC warns when it tries to inline this. */
+ ~HrirDataT();
};