Skip to content

Commit 0c13a1d

Browse files
committed
[engine] KeyHash is in a template class, no need to export.
Fix indent.
1 parent 188c469 commit 0c13a1d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Engine/Data/Mesh.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ class MultiIndexedGeometry : public CoreGeometryDisplayable<T>
375375
using LayerKeyType = std::pair<LayerSemanticCollection, std::string>;
376376

377377
using EntryType = std::pair<bool, VaoIndices*>;
378-
struct RA_CORE_API KeyHash {
379-
std::size_t operator()( const LayerKeyType& k ) const {
380-
// Mix semantic collection into a single identifier string
378+
struct KeyHash {
379+
std::size_t operator()( const LayerKeyType& k )
380+
const { // Mix semantic collection into a single identifier string
381381
std::ostringstream stream;
382382
std::copy(
383383
k.first.begin(), k.first.end(), std::ostream_iterator<std::string>( stream, "" ) );
@@ -388,9 +388,9 @@ class MultiIndexedGeometry : public CoreGeometryDisplayable<T>
388388
return std::hash<std::string> {}( result ) ^
389389
( std::hash<std::string> {}( k.second ) << 1 );
390390
}
391-
}; // namespace Data
391+
};
392392
std::unordered_map<LayerKeyType, EntryType, KeyHash> m_indices;
393-
}; // namespace Engine
393+
};
394394

395395
/// LineMesh, own a Core::Geometry::LineMesh
396396
class RA_ENGINE_API LineMesh : public IndexedGeometry<Core::Geometry::LineMesh>

0 commit comments

Comments
 (0)