[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/kopete/chatwindow
From:       Laurent Montel <montel () kde ! org>
Date:       2011-05-05 11:12:18
Message-ID: 20110505111218.93FEFAC85F () svn ! kde ! org
[Download RAW message or body]

SVN commit 1230472 by mlaurent:

Const'ify


 M  +3 -3      chatview.cpp  
 M  +3 -3      chatview.h  


--- trunk/KDE/kdenetwork/kopete/kopete/chatwindow/chatview.cpp #1230471:1230472
@@ -189,12 +189,12 @@
 	return this;
 }
 
-bool ChatView::canSend()
+bool ChatView::canSend() const
 {
 	return editPart()->canSend();
 }
 
-bool ChatView::canSendFile()
+bool ChatView::canSendFile() const
 {
 	Kopete::ContactPtrList contacts = msgManager()->members();
 	if ( contacts.count() != 1 )
@@ -332,7 +332,7 @@
 	return ( m_mainWindow && m_mainWindow->isVisible() );
 }
 
-bool ChatView::sendInProgress()
+bool ChatView::sendInProgress() const
 {
 	return d->sendInProgress;
 }
--- trunk/KDE/kdenetwork/kopete/kopete/chatwindow/chatview.h #1230471:1230472
@@ -142,7 +142,7 @@
 
 	QString &caption() const;
 
-	bool sendInProgress();
+	bool sendInProgress() const;
 
 	/** Reimplemented from KopeteView **/
 	virtual void raise( bool activate=false );
@@ -158,8 +158,8 @@
 
 	KTextEdit *editWidget();
 
-	bool canSend();
-	bool canSendFile();
+	bool canSend() const;
+	bool canSendFile() const;
 	
 	/** Reimplemented from KopeteView **/
 	virtual void registerContextMenuHandler( QObject *target, const char* slot );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic