Skip to content

Commit

Permalink
Move prototype up
Browse files Browse the repository at this point in the history
  • Loading branch information
foodprocessor committed Aug 22, 2024
1 parent f49b1b1 commit 5f73ac4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugin/settings/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ void Engine::doObtainDeviceAgent(Result<IDeviceAgent *> *outResult, const IDevic
*outResult = new DeviceAgent(this, deviceInfo);
}

// functions are not "hoisted", so we need "prototypes"
std::string generatePassphrase();

static std::string buildCapabilities()
{
std::string capabilities;
Expand Down Expand Up @@ -227,8 +230,6 @@ Result<const ISettingsResponse *> Engine::settingsReceived()
return settingsResponse;
}

std::string generatePassphrase();

bool Engine::mount()
{
// gather mount options
Expand Down

0 comments on commit 5f73ac4

Please sign in to comment.