Changing names and memory leak fix
This commit is contained in:
parent
6bac17fb9a
commit
9b19e6ee38
6 changed files with 18 additions and 18 deletions
|
@ -729,12 +729,12 @@ void Window::SetAspectRatio(double aspect_ratio, mate::Arguments* args) {
|
|||
window_->SetAspectRatio(aspect_ratio, extra_size);
|
||||
}
|
||||
|
||||
void Window::PreviewFile(const std::string& filepath, mate::Arguments* args) {
|
||||
std::string filename;
|
||||
if (!args->GetNext(&filename)) {
|
||||
filename = filepath;
|
||||
void Window::PreviewFile(const std::string& path, mate::Arguments* args) {
|
||||
std::string fileName;
|
||||
if (!args->GetNext(&fileName)) {
|
||||
fileName = path;
|
||||
}
|
||||
window_->PreviewFile(filepath, filename);
|
||||
window_->PreviewFile(path, fileName);
|
||||
}
|
||||
|
||||
void Window::SetParentWindow(v8::Local<v8::Value> value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue