Skip to content

Commit

Permalink
Fix const ref and declaration name
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmco committed Feb 3, 2025
1 parent ab4ba11 commit 25df8ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/cloysterhpc/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ std::string findAndReplace(const std::string_view& source,
void copyFile(std::filesystem::path source, std::filesystem::path destination);

std::optional<Glib::ustring> readKeyfileString(Glib::RefPtr<Glib::KeyFile> file,
const std::string_view& group, const std::string_view& key);
const std::string_view group, const std::string_view key);

} /* namespace cloyster */

Expand Down
2 changes: 1 addition & 1 deletion include/cloysterhpc/services/repo.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ELRepoFile : GenericFile {
Glib::RefPtr<Glib::KeyFile> m_file;

std::vector<ELRepo> parseData();
void unparseData(const std::vector<ELRepo>&);
void unparseData(const std::vector<ELRepo>& data);

std::vector<ELRepo> m_repositories;

Expand Down
2 changes: 1 addition & 1 deletion src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void copyFile(std::filesystem::path source, std::filesystem::path destination)
}

std::optional<Glib::ustring> readKeyfileString(Glib::RefPtr<Glib::KeyFile> file,
const std::string_view& group, const std::string_view& key)
const std::string_view group, const std::string_view key)
{
return file->has_key(group.data(), key.data())
? std::make_optional(file->get_string(group.data(), key.data()))
Expand Down

0 comments on commit 25df8ed

Please sign in to comment.