[Libreoffice-commits] core.git: avmedia/source include/vcl svtools/source svx/source sw/source vcl/source
Caolán McNamara
caolanm at redhat.com
Wed Jan 14 06:06:48 PST 2015
avmedia/source/viewer/mediawindow_impl.cxx | 2 +-
include/vcl/cmdevt.hxx | 6 +++---
svtools/source/brwbox/datwin.cxx | 2 +-
svx/source/sdr/contact/sdrmediawindow.cxx | 2 +-
sw/source/uibase/docvw/edtwin.cxx | 2 +-
vcl/source/window/event.cxx | 2 +-
6 files changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 75d2e7e5d58b42d30a2d1b054547a5852dabd2fe
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jan 14 10:50:58 2015 +0000
GetData is a hopelessly generic name
when you want to find the uses of it
Change-Id: I580c194f0fd200505d3df99089afc0872921a67b
diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx
index 21bd7c5..e5fffff 100644
--- a/avmedia/source/viewer/mediawindow_impl.cxx
+++ b/avmedia/source/viewer/mediawindow_impl.cxx
@@ -151,7 +151,7 @@ void MediaChildWindow::KeyUp( const KeyEvent& rKEvt )
void MediaChildWindow::Command( const CommandEvent& rCEvt )
{
const CommandEvent aTransformedEvent( GetParent()->ScreenToOutputPixel( OutputToScreenPixel( rCEvt.GetMousePosPixel() ) ),
- rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetData() );
+ rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetEventData() );
SystemChildWindow::Command( rCEvt );
GetParent()->Command( aTransformedEvent );
diff --git a/include/vcl/cmdevt.hxx b/include/vcl/cmdevt.hxx
index 439e969..bd4df39 100644
--- a/include/vcl/cmdevt.hxx
+++ b/include/vcl/cmdevt.hxx
@@ -358,7 +358,7 @@ class VCL_DLLPUBLIC CommandEvent
private:
Point maPos;
void* mpData;
- sal_uInt16 mnCommand;
+ sal_uInt16 mnCommand;
bool mbMouseEvent;
public:
@@ -366,10 +366,10 @@ public:
CommandEvent( const Point& rMousePos, sal_uInt16 nCmd,
bool bMEvt = false, const void* pCmdData = NULL );
- sal_uInt16 GetCommand() const { return mnCommand; }
+ sal_uInt16 GetCommand() const { return mnCommand; }
const Point& GetMousePosPixel() const { return maPos; }
bool IsMouseEvent() const { return mbMouseEvent; }
- void* GetData() const { return mpData; }
+ void* GetEventData() const { return mpData; }
const CommandExtTextInputData* GetExtTextInputData() const;
const CommandInputContextData* GetInputContextChangeData() const;
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx
index c5a9ae2..a3dd140 100644
--- a/svtools/source/brwbox/datwin.cxx
+++ b/svtools/source/brwbox/datwin.cxx
@@ -420,7 +420,7 @@ void BrowserDataWin::Command( const CommandEvent& rEvt )
aEventPos.Y() += GetParent()->GetTitleHeight();
CommandEvent aEvt( aEventPos, rEvt.GetCommand(),
- rEvt.IsMouseEvent(), rEvt.GetData() );
+ rEvt.IsMouseEvent(), rEvt.GetEventData() );
bInCommand = true;
GetParent()->Command( aEvt );
if( bInDtor )
diff --git a/svx/source/sdr/contact/sdrmediawindow.cxx b/svx/source/sdr/contact/sdrmediawindow.cxx
index 3313eed..9c24087 100644
--- a/svx/source/sdr/contact/sdrmediawindow.cxx
+++ b/svx/source/sdr/contact/sdrmediawindow.cxx
@@ -117,7 +117,7 @@ void SdrMediaWindow::Command( const CommandEvent& rCEvt )
if( pWindow && getWindow() )
{
const CommandEvent aTransformedEvent( pWindow->ScreenToOutputPixel( getWindow()->OutputToScreenPixel( rCEvt.GetMousePosPixel() ) ),
- rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetData() );
+ rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetEventData() );
pWindow->Command( aTransformedEvent );
}
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 5e3033b..61d1093 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5383,7 +5383,7 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
break;
case COMMAND_MODKEYCHANGE :
{
- const CommandModKeyData* pCommandData = (const CommandModKeyData*)rCEvt.GetData();
+ const CommandModKeyData* pCommandData = static_cast<const CommandModKeyData*>(rCEvt.GetEventData());
if(pCommandData->IsMod1() && !pCommandData->IsMod2())
{
sal_uInt16 nSlot = 0;
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index 01fb322..091165c51 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -317,7 +317,7 @@ CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, vcl::Window*
Point aPos = pSource->OutputToScreenPixel( rCEvt.GetMousePosPixel() );
aPos = pDest->ScreenToOutputPixel( aPos );
- return CommandEvent( aPos, rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetData() );
+ return CommandEvent( aPos, rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetEventData() );
}
void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt )
More information about the Libreoffice-commits
mailing list