Skip to content

Commit

Permalink
VOXELUTIL: added nodiscard
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Nov 8, 2024
1 parent c1b4d6a commit c313846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/voxelutil/VolumeMerger.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ inline int mergeRawVolumesSameDimension(voxel::RawVolume* destination, const vox
return mergeVolumes(destination, source, destination->region(), source->region());
}

extern voxel::RawVolume* merge(const core::DynamicArray<voxel::RawVolume*>& volumes);
extern voxel::RawVolume* merge(const core::DynamicArray<const voxel::RawVolume*>& volumes);
[[nodiscard]] voxel::RawVolume* merge(const core::DynamicArray<voxel::RawVolume*>& volumes);
[[nodiscard]] voxel::RawVolume* merge(const core::DynamicArray<const voxel::RawVolume*>& volumes);

}
4 changes: 2 additions & 2 deletions src/modules/voxelutil/VolumeMover.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#pragma once

#include "voxel/RawVolume.h"
#include "core/Common.h"
#include "voxel/Voxel.h"
#include "voxel/Region.h"
#include "core/Trace.h"

namespace voxelutil {
Expand Down

0 comments on commit c313846

Please sign in to comment.