Don't cast manually for NativeWindow*
This commit is contained in:
parent
5336b4a89c
commit
b722150d87
2 changed files with 2 additions and 7 deletions
|
@ -1082,12 +1082,7 @@ void BrowserWindow::ToggleTabBar() {
|
|||
window_->ToggleTabBar();
|
||||
}
|
||||
|
||||
void BrowserWindow::AddTabbedWindow(mate::Arguments* args) {
|
||||
NativeWindow* window;
|
||||
if (!args->GetNext(&window)) {
|
||||
args->ThrowError("Insert good error message here");
|
||||
return;
|
||||
}
|
||||
void BrowserWindow::AddTabbedWindow(NativeWindow* window, mate::Arguments* args) {
|
||||
window_->AddTabbedWindow(window, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -243,7 +243,7 @@ class BrowserWindow : public mate::TrackableObject<BrowserWindow>,
|
|||
void MergeAllWindows();
|
||||
void MoveTabToNewWindow();
|
||||
void ToggleTabBar();
|
||||
void AddTabbedWindow(mate::Arguments* args);
|
||||
void AddTabbedWindow(NativeWindow* window, mate::Arguments* args);
|
||||
|
||||
void SetVibrancy(mate::Arguments* args);
|
||||
void SetTouchBar(const std::vector<mate::PersistentDictionary>& items);
|
||||
|
|
Loading…
Reference in a new issue