summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-17 16:40:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-17 16:42:29 +0100
commit04683f14883f4cd64febadd71b327639f1e7edcc (patch)
treed1195eec7abc45fcf3b28776278f3856638a4a32 /padmin
parent734cf8395d745db73f52fd6d625d7deb77ba6d40 (diff)
Window::Notify should return bool
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/helper.cxx12
-rw-r--r--padmin/source/helper.hxx4
-rw-r--r--padmin/source/padialog.cxx2
-rw-r--r--padmin/source/padialog.hxx2
4 files changed, 10 insertions, 10 deletions
diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx
index 023923a52472..30f1af76ce67 100644
--- a/padmin/source/helper.cxx
+++ b/padmin/source/helper.cxx
@@ -140,15 +140,15 @@ void padmin::FindFiles( const OUString& rDirectory, ::std::list< OUString >& rRe
* DelMultiListBox
*/
-long DelMultiListBox::Notify( NotifyEvent& rEvent )
+bool DelMultiListBox::Notify( NotifyEvent& rEvent )
{
- long nRet = 0;
+ bool nRet = false;
if( rEvent.GetType() == EVENT_KEYINPUT &&
rEvent.GetKeyEvent()->GetKeyCode().GetCode() == KEY_DELETE )
{
m_aDelPressedLink.Call( this );
- nRet = 1;
+ nRet = true;
}
else
nRet = MultiListBox::Notify( rEvent );
@@ -160,15 +160,15 @@ long DelMultiListBox::Notify( NotifyEvent& rEvent )
* DelListBox
*/
-long DelListBox::Notify( NotifyEvent& rEvent )
+bool DelListBox::Notify( NotifyEvent& rEvent )
{
- long nRet = 0;
+ bool nRet = false;
if( rEvent.GetType() == EVENT_KEYINPUT &&
rEvent.GetKeyEvent()->GetKeyCode().GetCode() == KEY_DELETE )
{
m_aDelPressedLink.Call( this );
- nRet = 1;
+ nRet = true;
}
else
nRet = ListBox::Notify( rEvent );
diff --git a/padmin/source/helper.hxx b/padmin/source/helper.hxx
index ea0babe61cf9..d229766c1836 100644
--- a/padmin/source/helper.hxx
+++ b/padmin/source/helper.hxx
@@ -49,7 +49,7 @@ public:
MultiListBox( pParent, rResId ) {}
~DelMultiListBox() {}
- virtual long Notify( NotifyEvent& rEvent );
+ virtual bool Notify( NotifyEvent& rEvent );
Link setDelPressedLink( const Link& rLink )
{
@@ -68,7 +68,7 @@ public:
ListBox( pParent, rResId ) {}
~DelListBox() {}
- virtual long Notify( NotifyEvent& rEvent );
+ virtual bool Notify( NotifyEvent& rEvent );
Link setDelPressedLink( const Link& rLink )
{
diff --git a/padmin/source/padialog.cxx b/padmin/source/padialog.cxx
index 2685e2d27146..fa20fa2938ae 100644
--- a/padmin/source/padialog.cxx
+++ b/padmin/source/padialog.cxx
@@ -147,7 +147,7 @@ PADialog::~PADialog()
freePadminRC();
}
-long PADialog::Notify( NotifyEvent& rEv )
+bool PADialog::Notify( NotifyEvent& rEv )
{
if( IsVisible() &&
(rEv.GetType() == EVENT_GETFOCUS || rEv.GetType() == EVENT_LOSEFOCUS )
diff --git a/padmin/source/padialog.hxx b/padmin/source/padialog.hxx
index 031cab8abba1..6dd6834f1ce4 100644
--- a/padmin/source/padialog.hxx
+++ b/padmin/source/padialog.hxx
@@ -88,7 +88,7 @@ namespace padmin {
void PrintTestPage();
void updateSettings();
- virtual long Notify( NotifyEvent& rEv );
+ virtual bool Notify( NotifyEvent& rEv );
virtual void DataChanged( const DataChangedEvent& rEv );
OUString getSelectedDevice();