Skip to content

Commit

Permalink
Correct a couple of the outstanding codacy issues.
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
  • Loading branch information
MoleskiCoder committed Sep 11, 2017
1 parent a1f39de commit 5b145c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libs/libchip8/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void Configuration::read(std::string path) {
m_graphicsCountRowHits = reader.GetBooleanValue("Graphics.CountRowHits", m_graphicsCountRowHits);
}

ProcessorLevel Configuration::GetProcessorTypeValue(const ConfigurationReader& reader, std::string path, ProcessorLevel defaultValue) const {
ProcessorLevel Configuration::GetProcessorTypeValue(const ConfigurationReader& reader, const std::string& path, ProcessorLevel defaultValue) const {

auto value = reader.GetStringValue(path);
if (value.empty())
Expand All @@ -77,6 +77,6 @@ ProcessorLevel Configuration::GetProcessorTypeValue(const ConfigurationReader& r
return ProcessorLevel::xoChip;
}

ProcessorLevel Configuration::GetProcessorTypeValue(const ConfigurationReader& reader, std::string path) const {
ProcessorLevel Configuration::GetProcessorTypeValue(const ConfigurationReader& reader, const std::string& path) const {
return GetProcessorTypeValue(reader, path, ProcessorLevel::superChip);
}
4 changes: 2 additions & 2 deletions src/libs/libchip8/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@ class Configuration {
bool m_chip8LoadAndSave;
bool m_chip8IndexedJumps;

ProcessorLevel GetProcessorTypeValue(const ConfigurationReader& reader, std::string path, ProcessorLevel defaultValue) const;
ProcessorLevel GetProcessorTypeValue(const ConfigurationReader& reader, std::string path) const;
ProcessorLevel GetProcessorTypeValue(const ConfigurationReader& reader, const std::string& path, ProcessorLevel defaultValue) const;
ProcessorLevel GetProcessorTypeValue(const ConfigurationReader& reader, const std::string& path) const;
};

0 comments on commit 5b145c4

Please sign in to comment.