Skip to content

Commit

Permalink
Pass vector in const reference
Browse files Browse the repository at this point in the history
Co-authored-by: Yingchi Long <[email protected]>
  • Loading branch information
Grafcube and inclyc authored Jun 19, 2024
1 parent b3d257d commit 58bdf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixd/lib/Controller/Hover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class OptionsHoverProvider {

public:
OptionsHoverProvider(AttrSetClient &Client) : Client(Client) {}
std::optional<OptionDescription> resolveHover(std::vector<std::string> Scope,
std::optional<OptionDescription> resolveHover(const std::vector<std::string> &Scope,
std::string Name) {
std::binary_semaphore Ready(0);
std::optional<OptionDescription> Desc;
Expand Down

0 comments on commit 58bdf2a

Please sign in to comment.