I forget cpplint every time

This commit is contained in:
Paul Betts 2015-06-25 15:09:25 -06:00
parent 528e0f3efb
commit 58efb3c018
4 changed files with 4 additions and 4 deletions

View file

@ -162,7 +162,7 @@ void Window::OnDevToolsClosed() {
devtools_web_contents_.Reset();
}
void Window::OnExecuteWindowsCommand(std::string& command_name) {
void Window::OnExecuteWindowsCommand(const std::string& command_name) {
Emit("app-command", command_name);
}

View file

@ -71,7 +71,7 @@ class Window : public mate::TrackableObject<Window>,
void OnDevToolsFocus() override;
void OnDevToolsOpened() override;
void OnDevToolsClosed() override;
void OnExecuteWindowsCommand(std::string& command_name) override;
void OnExecuteWindowsCommand(const std::string& command_name) override;
private:
// APIs for NativeWindow.

View file

@ -596,7 +596,7 @@ void NativeWindow::OnCapturePageDone(const CapturePageCallback& callback,
}
const char* NativeWindow::AppCommandToString(int command_id) {
switch(command_id) {
switch (command_id) {
case APPCOMMAND_BROWSER_BACKWARD:
return "browser-backward";
case APPCOMMAND_BROWSER_FORWARD:

View file

@ -67,7 +67,7 @@ class NativeWindowObserver {
virtual void OnRendererResponsive() {}
// Called on Windows when App Commands arrive (WM_APPCOMMAND)
virtual void OnExecuteWindowsCommand(std::string& command_name) {}
virtual void OnExecuteWindowsCommand(const std::string& command_name) {}
};
} // namespace atom