diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp index 8b55f7a2..bf86809b 100644 --- a/YACReader/main_window_viewer.cpp +++ b/YACReader/main_window_viewer.cpp @@ -710,19 +710,19 @@ void MainWindowViewer::open(QString path, qint64 comicId, qint64 libraryId) optionsDialog->setFilters(currentComicDB.info.brightness, currentComicDB.info.contrast, currentComicDB.info.gamma); } -void MainWindowViewer::openComicFromPath(const QString &pathFile) +void MainWindowViewer::openComicFromPath(QString pathFile) { openComic(pathFile); isClient = false; //this method is used for direct openings } //isClient shouldn't be modified when a siblinig comic is opened -void MainWindowViewer::openSiblingComic(const QString &pathFile) +void MainWindowViewer::openSiblingComic(QString pathFile) { openComic(pathFile); } -void MainWindowViewer::openComic(const QString &pathFile) +void MainWindowViewer::openComic(QString pathFile) { QFileInfo fi(pathFile); currentDirectory = fi.dir().absolutePath(); @@ -732,7 +732,7 @@ void MainWindowViewer::openComic(const QString &pathFile) enableActions(); - viewer->open(fi.absoluteFilePath()); + viewer->open(pathFile); } void MainWindowViewer::openFolder() @@ -746,7 +746,7 @@ void MainWindowViewer::openFolder() } } -void MainWindowViewer::openFolderFromPath(const QString & pathDir) +void MainWindowViewer::openFolderFromPath(QString pathDir) { currentDirectory = pathDir; //TODO ?? QFileInfo fi(pathDir); @@ -759,7 +759,7 @@ void MainWindowViewer::openFolderFromPath(const QString & pathDir) viewer->open(pathDir); } -void MainWindowViewer::openFolderFromPath(const QString &pathDir, const QString &atFileName) +void MainWindowViewer::openFolderFromPath(QString pathDir, QString atFileName) { currentDirectory = pathDir; //TODO ?? QFileInfo fi(pathDir); diff --git a/YACReader/main_window_viewer.h b/YACReader/main_window_viewer.h index 6b1d4f60..6f27c75b 100644 --- a/YACReader/main_window_viewer.h +++ b/YACReader/main_window_viewer.h @@ -48,11 +48,11 @@ class EditShortcutsDialog; void newVersion(); void openPreviousComic(); void openNextComic(); - void openComicFromPath(const QString & pathFile); - void openSiblingComic(const QString &pathFile); - void openComic(const QString &pathFile); - void openFolderFromPath(const QString & pathDir); - void openFolderFromPath(const QString & pathFile, const QString & atFileName); + void openComicFromPath(QString pathFile); + void openSiblingComic(QString pathFile); + void openComic(QString pathFile); + void openFolderFromPath(QString pathDir); + void openFolderFromPath(QString pathFile, QString atFileName); void alwaysOnTopSwitch(); void adjustToFullSizeSwitch(); void reloadOptions();