File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -618,14 +618,14 @@ void MainWindow::openRecentProjectsMenu()
618618void MainWindow::openRecentFilesMenu ()
619619{
620620 mRecentFilesMenu ->clear ();
621- const QString stringList = SettingsManager::value (" recentFiles" ).toString ();
622- QStringList recentFiles = stringList.split (" ;" , QString::SkipEmptyParts);
621+ const auto stringList = SettingsManager::value (" recentFiles" ).toString ();
622+ auto recentFiles = stringList.split (" ;" , QString::SkipEmptyParts);
623623 mRecentFilesLimit = SettingsManager::value (" recentFilesLimit" , mRecentFilesLimit ).toInt ();
624624 while (recentFiles.size () > mRecentFilesLimit ) {
625625 recentFiles.pop_front ();
626626 }
627627
628- for (const QString &filePath : recentFiles) {
628+ for (auto & &filePath : recentFiles) {
629629 const QFileInfo fileInfo (filePath);
630630 if (fileInfo.exists () && fileInfo.isFile ()) {
631631 mRecentFilesMenu ->addAction (filePath);
Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ void TextManager::showInTextEditor(const QFileInfo &fileInfo
240240}
241241
242242void TextManager::refreshRecentFilesList (const QString &fileName) {
243- QString previousString = SettingsManager::value (" recentFiles" ).toString ();
244- QStringList previousList = previousString.split (" ;" , QString::SkipEmptyParts);
243+ auto previousString = SettingsManager::value (" recentFiles" ).toString ();
244+ auto previousList = previousString.split (" ;" , QString::SkipEmptyParts);
245245 previousList.removeOne (fileName);
246246
247247 if (!previousList.isEmpty () && (previousList.size () == mRecentFilesLimit )) {
You can’t perform that action at this time.
0 commit comments