Skip to content

Commit

Permalink
add const for config arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mattldawson committed Aug 29, 2024
1 parent 2b4e1ba commit eaf221e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/musica/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ namespace musica
/// @param target The target array of name-index Mappings
/// @param error The Error to populate if a Mapping is not found
/// @return The array of IndexMappings
IndexMappings CreateIndexMappings(Configuration configuration, const Mappings source, const Mappings target, Error* error);
IndexMappings CreateIndexMappings(const Configuration configuration, const Mappings source, const Mappings target, Error* error);

/// @brief Copies data from one array to another using IndexMappings
/// @param mappings The array of IndexMappings
Expand Down
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace musica
delete[] mappings->mappings_;
}

IndexMappings CreateIndexMappings(Configuration configuration, const Mappings source, const Mappings target, Error* error)
IndexMappings CreateIndexMappings(const Configuration configuration, const Mappings source, const Mappings target, Error* error)
{
DeleteError(error);
std::size_t size = configuration.data_->size();
Expand Down

0 comments on commit eaf221e

Please sign in to comment.