Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkezone committed Apr 18, 2021
1 parent 721f922 commit edfec62
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion shell/platform/windows/flutter_project_bundle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ UniqueAotDataPtr FlutterProjectBundle::LoadAotData(
FlutterProjectBundle::~FlutterProjectBundle() {}

void FlutterProjectBundle::SetSwitches(
std::vector<std::string> const& switches) {
const std::vector<std::string>& switches) {
engine_switches_ = switches;
}

Expand Down
2 changes: 1 addition & 1 deletion shell/platform/windows/flutter_project_bundle.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class FlutterProjectBundle {
const std::vector<std::string> GetSwitches();

// Sets engine switches.
void SetSwitches(std::vector<std::string> const& switches);
void SetSwitches(const std::vector<std::string>& switches);

// Attempts to load AOT data for this bundle. The returned data must be
// retained until any engine instance it is passed to has been shut down.
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/windows/flutter_windows_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ FlutterWindowsEngine::~FlutterWindowsEngine() {
}

void FlutterWindowsEngine::SetSwitches(
std::vector<std::string> const& switches) {
const std::vector<std::string>& switches) {
project_->SetSwitches(switches);
}

Expand Down
2 changes: 1 addition & 1 deletion shell/platform/windows/flutter_windows_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class FlutterWindowsEngine {
FlutterDesktopOnPluginRegistrarDestroyed callback);

// Sets switches member to the given switches.
void SetSwitches(std::vector<std::string> const& switches);
void SetSwitches(const std::vector<std::string>& switches);

FlutterDesktopMessengerRef messenger() { return messenger_.get(); }

Expand Down
3 changes: 1 addition & 2 deletions shell/platform/windows/flutter_windows_winuwp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ static flutter::FlutterWindowsEngine* EngineFromHandle(
return reinterpret_cast<flutter::FlutterWindowsEngine*>(ref);
}

// Resturns a list of discrete arguments splitting the input using a ",".
// Returns a list of discrete arguments splitting the input using a ",".
std::vector<std::string> SplitCommaSeparatedString(const std::string& s) {
// Split by ','.
std::vector<std::string> components;
std::istringstream stream(s);
std::string component;
Expand Down

0 comments on commit edfec62

Please sign in to comment.