r24520 by jghali - Add some constness
scribus-commit
scribus-commit at lists.scribus.net
Mon Feb 22 20:43:14 UTC 2021
Author: jghali
Date: Mon Feb 22 20:43:13 2021
New Revision: 24520
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24520
Log:
Add some constness
Modified:
trunk/Scribus/scribus/filewatcher.cpp
trunk/Scribus/scribus/filewatcher.h
Modified: trunk/Scribus/scribus/filewatcher.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24520&path=/trunk/Scribus/scribus/filewatcher.cpp
==============================================================================
--- trunk/Scribus/scribus/filewatcher.cpp (original)
+++ trunk/Scribus/scribus/filewatcher.cpp Mon Feb 22 20:43:13 2021
@@ -128,12 +128,12 @@
checkFiles();
}
-bool FileWatcher::isActive()
+bool FileWatcher::isActive() const
{
return (m_stateFlags & AddRemoveBlocked);
}
-bool FileWatcher::isWatching(const QString& fileName)
+bool FileWatcher::isWatching(const QString& fileName) const
{
QString qtFileName = QDir::fromNativeSeparators(fileName);
return m_watchedFiles.contains(qtFileName);
Modified: trunk/Scribus/scribus/filewatcher.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24520&path=/trunk/Scribus/scribus/filewatcher.h
==============================================================================
--- trunk/Scribus/scribus/filewatcher.h (original)
+++ trunk/Scribus/scribus/filewatcher.h Mon Feb 22 20:43:13 2021
@@ -26,9 +26,9 @@
~FileWatcher() override;
// Get if file check loop is running
- bool isActive();
+ bool isActive() const;
// Check if a file is currently being watched
- bool isWatching(const QString& fileName);
+ bool isWatching(const QString& fileName) const;
// Set the timer length in milliseconds
void setTimeOut(const int newTimeOut, const bool restartTimer=false);
// Get the timer length
More information about the scribus-commit
mailing list