diff options
author | Andrzej J. R. Hunt <andrzej@ahunt.org> | 2012-07-18 16:14:52 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-08-06 10:22:58 +0100 |
commit | 6d6b6ee2750aa181c37464d9253b01509036b2ba (patch) | |
tree | edb66c4ed4e10e9ca5021f6daa557e6c0e2b2eac /sd/source/ui/remotecontrol/Receiver.cxx | |
parent | 38b4c55546dc91e6f90f24b6e8b30530a3093fcf (diff) |
Fixed segfault on use of transmitter, and transmitter lifecycle.
Change-Id: I3983b28443584f33a879ba9fab52f11a0ab7fad5
Diffstat (limited to 'sd/source/ui/remotecontrol/Receiver.cxx')
-rw-r--r-- | sd/source/ui/remotecontrol/Receiver.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/remotecontrol/Receiver.cxx b/sd/source/ui/remotecontrol/Receiver.cxx index 8ab8e666aef4..f69c98ec4b4e 100644 --- a/sd/source/ui/remotecontrol/Receiver.cxx +++ b/sd/source/ui/remotecontrol/Receiver.cxx @@ -33,7 +33,7 @@ using namespace std; Receiver::Receiver( Transmitter *aTransmitter ) { - mTransmitter = aTransmitter; + pTransmitter = aTransmitter; } Receiver::~Receiver() @@ -110,12 +110,12 @@ void Receiver::parseCommand( std::vector<OString> aCommand ) } } // FIXME: remove later, this is just to test functionality - sendPreview( 0, xSlideShowController, mTransmitter ); +// sendPreview( 0, xSlideShowController, mTransmitter ); } -void sendPreview(sal_uInt32 aSlideNumber, - uno::Reference<presentation::XSlideShowController> xSlideShowController, Transmitter *aTransmitter ) +void sendPreview( sal_uInt32 aSlideNumber, + const uno::Reference<presentation::XSlideShowController>& xSlideShowController, Transmitter *aTransmitter ) { sal_uInt64 aSize; // Unused @@ -143,7 +143,7 @@ void sendPreview(sal_uInt32 aSlideNumber, uno::Sequence<sal_Int8> preparePreview(sal_uInt32 aSlideNumber, - const uno::Reference<presentation::XSlideShowController> &xSlideShowController, + const uno::Reference<presentation::XSlideShowController>& xSlideShowController, sal_uInt32 aWidth, sal_uInt32 aHeight, sal_uInt64 &rSize ) { (void)aWidth; (void)aHeight; // FIXME: remove me when I'm used |