Update to const

This commit is contained in:
Ximi1970
2020-05-22 13:49:53 +02:00
parent d2180423ad
commit b18e52839d
2 changed files with 6 additions and 6 deletions

View File

@@ -100,7 +100,7 @@ Preferences::MinimizeType WindowCtrlWin::getMinimizeType() const
/*
* Get the parent pid of SysTray-X, TB hopefully
*/
qint64 WindowCtrlWin::getPpid()
qint64 WindowCtrlWin::getPpid() const
{
HANDLE h = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
PROCESSENTRY32 pe;
@@ -131,7 +131,7 @@ qint64 WindowCtrlWin::getPpid()
/*
* Is the pid from thunderbird
*/
bool WindowCtrlWin::isThunderbird( qint64 pid )
bool WindowCtrlWin::isThunderbird( qint64 pid ) const
{
return getProcessName( pid ).contains( "thunderbird", Qt::CaseInsensitive );
}
@@ -140,7 +140,7 @@ bool WindowCtrlWin::isThunderbird( qint64 pid )
/*
* Get the process name
*/
QString WindowCtrlWin::getProcessName( qint64 pid )
QString WindowCtrlWin::getProcessName( qint64 pid ) const
{
HANDLE proc = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, false, pid );
char name[ 256 ];

View File

@@ -97,7 +97,7 @@ class WindowCtrlWin : public QObject
*
* @return The ppid
*/
qint64 getPpid();
qint64 getPpid() const;
/**
* @brief isThunderbird. Is this a thunderbird pid.
@@ -106,7 +106,7 @@ class WindowCtrlWin : public QObject
*
* @return True if this is thunderbird.
*/
bool isThunderbird( qint64 pid );
bool isThunderbird( qint64 pid ) const;
/**
* @brief getProcessName. Get the name of the proces by pid.
@@ -115,7 +115,7 @@ class WindowCtrlWin : public QObject
*
* @return The process name.
*/
QString getProcessName( qint64 pid );
QString getProcessName( qint64 pid ) const;
/**
* @brief findWindow. Find window by title.