use new macros to cleanup #ifndef NDEBUG as much as possible (libs edition)

This commit is contained in:
Paul Davis
2022-06-21 21:46:54 -06:00
parent 0004ca2c41
commit 0d9656ef82
14 changed files with 49 additions and 91 deletions

View File

@@ -20,6 +20,7 @@
#include <cmath>
#include "ardour/lmath.h"
#include "pbd/assert.h"
#include "pbd/cpus.h"
#include "pbd/pthread_utils.h"
@@ -207,12 +208,8 @@ WaveViewCache::get_cache_group (boost::shared_ptr<ARDOUR::AudioSource> source)
boost::shared_ptr<WaveViewCacheGroup> new_group (new WaveViewCacheGroup (*this));
#ifndef NDEBUG
bool inserted =
#endif
cache_group_map.insert (std::make_pair (source, new_group)).second;
assert (inserted);
bool inserted = cache_group_map.insert (std::make_pair (source, new_group)).second;
x_assert (inserted, inserted);
return new_group;
}