Changing names and memory leak fix

This commit is contained in:
Pierre Laurac 2016-10-14 09:42:50 -07:00 committed by Kevin Sawicki
parent 6bac17fb9a
commit 9b19e6ee38
6 changed files with 18 additions and 18 deletions

View file

@ -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,