diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-10-16 17:57:58 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-10-16 17:57:58 +0000 |
commit | 3f8d050aeb026eb5b1a631d2acf6f129d5724e31 (patch) | |
tree | 8e7efe15be0d2740479f6ab864a245265c5cec69 /svx/source/editeng | |
parent | d51671c290af1e0206d3bccf4455e34bf8cb5370 (diff) |
#92924#: gcc-3.0.1 needs lvalue
Diffstat (limited to 'svx/source/editeng')
-rw-r--r-- | svx/source/editeng/editeng.cxx | 10 | ||||
-rw-r--r-- | svx/source/editeng/editview.cxx | 16 |
2 files changed, 16 insertions, 10 deletions
diff --git a/svx/source/editeng/editeng.cxx b/svx/source/editeng/editeng.cxx index 095380aa31f3..db1d118fefc2 100644 --- a/svx/source/editeng/editeng.cxx +++ b/svx/source/editeng/editeng.cxx @@ -2,9 +2,9 @@ * * $RCSfile: editeng.cxx,v $ * - * $Revision: 1.46 $ + * $Revision: 1.47 $ * - * last change: $Author: mt $ $Date: 2001-10-11 12:52:58 $ + * last change: $Author: hr $ $Date: 2001-10-16 18:57:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -815,8 +815,10 @@ sal_Bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pEditVie { aCurSel = pImpEditEngine->MoveCursor( rKeyEvent, pEditView ); - if ( aCurSel.HasRange() ) - pEditView->pImpEditView->CutCopy( pEditView->GetWindow()->GetSelection(), FALSE ); + if ( aCurSel.HasRange() ) { + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aSelection(pEditView->GetWindow()->GetSelection()); + pEditView->pImpEditView->CutCopy( aSelection, FALSE ); + } bMoved = sal_True; if ( nCode == KEY_END ) diff --git a/svx/source/editeng/editview.cxx b/svx/source/editeng/editview.cxx index a54f84ea7cac..0decbce0f290 100644 --- a/svx/source/editeng/editview.cxx +++ b/svx/source/editeng/editview.cxx @@ -2,9 +2,9 @@ * * $RCSfile: editview.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: mt $ $Date: 2001-08-20 12:30:55 $ + * last change: $Author: hr $ $Date: 2001-10-16 18:57:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -526,25 +526,29 @@ sal_uInt32 EditView::Write( SvStream& rOutput, EETextFormat eFormat ) void EditView::Cut() { DBG_CHKTHIS( EditView, 0 ); - pImpEditView->CutCopy( GetWindow()->GetClipboard(), sal_True ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + pImpEditView->CutCopy( aClipBoard, sal_True ); } void EditView::Copy() { DBG_CHKTHIS( EditView, 0 ); - pImpEditView->CutCopy( GetWindow()->GetClipboard(), sal_False ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + pImpEditView->CutCopy( aClipBoard, sal_False ); } void EditView::Paste() { DBG_CHKTHIS( EditView, 0 ); - pImpEditView->Paste( GetWindow()->GetClipboard(), sal_False ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + pImpEditView->Paste( aClipBoard, sal_False ); } void EditView::PasteSpecial() { DBG_CHKTHIS( EditView, 0 ); - pImpEditView->Paste( GetWindow()->GetClipboard(), sal_True ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + pImpEditView->Paste(aClipBoard, sal_True ); } void EditView::EnablePaste( sal_Bool bEnable ) |