summaryrefslogtreecommitdiffstats
path: root/include/framework/structure
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-10-31 12:05:58 -0400
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-10-31 12:05:58 -0400
commit230831243a61f1ca1b1dd4319a4c5224b15d2657 (patch)
treeef519bc5ca90ca8dc31b63e09b45b654a57ee4d2 /include/framework/structure
parent5f5eccdac3fd600e4d0d23db39b7c816206fdfe5 (diff)
downloaddynamic-extension-230831243a61f1ca1b1dd4319a4c5224b15d2657.tar.gz
ExtensionStructure: fixed incorrect constructor args in clone()
Diffstat (limited to 'include/framework/structure')
-rw-r--r--include/framework/structure/ExtensionStructure.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/framework/structure/ExtensionStructure.h b/include/framework/structure/ExtensionStructure.h
index 1f365ae..2ced439 100644
--- a/include/framework/structure/ExtensionStructure.h
+++ b/include/framework/structure/ExtensionStructure.h
@@ -54,7 +54,7 @@ public:
* need to be forwarded to the appropriate structures manually.
*/
ExtensionStructure<R, S, Q, L> *copy() {
- auto new_struct = new ExtensionStructure<R, S, Q, L>(m_scale_factor, m_max_delete_prop, m_buffer_size);
+ auto new_struct = new ExtensionStructure<R, S, Q, L>(m_buffer_size, m_scale_factor, m_max_delete_prop);
for (size_t i=0; i<m_levels.size(); i++) {
new_struct->m_levels.push_back(m_levels[i]->clone());
}
@@ -432,7 +432,7 @@ private:
* vector.
*/
inline bool can_merge_with(level_index idx, size_t incoming_rec_cnt) {
- if (idx>= m_levels.size() || !m_levels[idx]) {
+ if (idx >= m_levels.size() || !m_levels[idx]) {
return false;
}