Do not bind primitives per ref

This commit is contained in:
Daniel J. Hofmann 2016-05-04 15:49:47 +02:00 committed by Patrick Niklaus
parent c30f69d6e9
commit 8036320d94
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -109,7 +109,7 @@ void ExtractionContainers::WriteNames(const std::string &names_file_name) const
unsigned total_length = 0;
for (const unsigned &name_length : name_lengths)
for (const auto name_length : name_lengths)
{
total_length += name_length;
}
@ -124,7 +124,7 @@ void ExtractionContainers::WriteNames(const std::string &names_file_name) const
char write_buffer[WRITE_BLOCK_BUFFER_SIZE];
unsigned buffer_len = 0;
for (const char &c : name_char_data)
for (const auto c : name_char_data)
{
write_buffer[buffer_len++] = c;