Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
935c228c
Kaydet (Commit)
935c228c
authored
Eyl 17, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: use std::unique_ptr<> in wrtsh
Change-Id: I3db550e0efa22eb4b497ad600e94ff77254bb62b
üst
cbf3fac0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
select.cxx
sw/source/uibase/wrtsh/select.cxx
+3
-3
wrtsh1.cxx
sw/source/uibase/wrtsh/wrtsh1.cxx
+2
-3
wrtsh2.cxx
sw/source/uibase/wrtsh/wrtsh2.cxx
+4
-4
No files found.
sw/source/uibase/wrtsh/select.cxx
Dosyayı görüntüle @
935c228c
...
...
@@ -39,7 +39,7 @@
#include <crsskip.hxx>
#include <doc.hxx>
#include <wordcountdialog.hxx>
#include <
boost/scoped_ptr.hpp
>
#include <
memory
>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
util
{
struct
SearchOptions
;
...
...
@@ -129,8 +129,8 @@ long SwWrtShell::SelAll()
LeaveBlockMode
();
SwMvContext
aMvContext
(
this
);
bool
bMoveTable
=
false
;
boost
::
scoped
_ptr
<
SwPosition
>
pStartPos
;
boost
::
scoped
_ptr
<
SwPosition
>
pEndPos
;
std
::
unique
_ptr
<
SwPosition
>
pStartPos
;
std
::
unique
_ptr
<
SwPosition
>
pEndPos
;
SwShellCrsr
*
pTmpCrsr
=
0
;
// Query these early, before we move the cursor.
...
...
sw/source/uibase/wrtsh/wrtsh1.cxx
Dosyayı görüntüle @
935c228c
...
...
@@ -105,7 +105,7 @@
#include "FrameControlsManager.hxx"
#include <sfx2/msgpool.hxx>
#include <
boost/scoped_ptr.hpp
>
#include <
memory
>
using
namespace
sw
::
mark
;
using
namespace
com
::
sun
::
star
;
...
...
@@ -375,8 +375,7 @@ void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName
OString
aCmd
(
".uno:"
);
aCmd
+=
pSlot
->
GetUnoName
();
SvxAbstractDialogFactory
*
pFact
=
SvxAbstractDialogFactory
::
Create
();
boost
::
scoped_ptr
<
SfxAbstractInsertObjectDialog
>
pDlg
(
pFact
->
CreateInsertObjectDialog
(
GetWin
(),
OUString
::
fromUtf8
(
aCmd
),
xStor
,
&
aServerList
));
std
::
unique_ptr
<
SfxAbstractInsertObjectDialog
>
pDlg
(
pFact
->
CreateInsertObjectDialog
(
GetWin
(),
OUString
::
fromUtf8
(
aCmd
),
xStor
,
&
aServerList
));
if
(
pDlg
)
{
pDlg
->
Execute
();
...
...
sw/source/uibase/wrtsh/wrtsh2.cxx
Dosyayı görüntüle @
935c228c
...
...
@@ -64,7 +64,7 @@
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <xmloff/odffields.hxx>
#include <
boost/scoped_ptr.hpp
>
#include <
memory
>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
...
...
@@ -81,7 +81,7 @@ void SwWrtShell::Insert(SwField &rField)
StartUndo
(
UNDO_INSERT
,
&
aRewriter
);
bool
bDeleted
=
false
;
boost
::
scoped
_ptr
<
SwPaM
>
pAnnotationTextRange
;
std
::
unique
_ptr
<
SwPaM
>
pAnnotationTextRange
;
if
(
HasSelection
()
)
{
if
(
rField
.
GetTyp
()
->
Which
()
==
RES_POSTITFLD
)
...
...
@@ -234,7 +234,7 @@ bool SwWrtShell::StartInputFieldDlg( SwField* pField, bool bNextButton,
SwAbstractDialogFactory
*
pFact
=
SwAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"Dialog creation failed!"
);
boost
::
scoped
_ptr
<
AbstractFieldInputDlg
>
pDlg
(
pFact
->
CreateFieldInputDlg
(
pParentWin
,
*
this
,
pField
,
bNextButton
));
std
::
unique
_ptr
<
AbstractFieldInputDlg
>
pDlg
(
pFact
->
CreateFieldInputDlg
(
pParentWin
,
*
this
,
pField
,
bNextButton
));
OSL_ENSURE
(
pDlg
,
"Dialog creation failed!"
);
if
(
pWindowState
&&
!
pWindowState
->
isEmpty
())
pDlg
->
SetWindowState
(
*
pWindowState
);
...
...
@@ -259,7 +259,7 @@ bool SwWrtShell::StartDropDownFieldDlg(SwField* pField, bool bNextButton, OStrin
SwAbstractDialogFactory
*
pFact
=
SwAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"SwAbstractDialogFactory fail!"
);
boost
::
scoped
_ptr
<
AbstractDropDownFieldDialog
>
pDlg
(
pFact
->
CreateDropDownFieldDialog
(
NULL
,
*
this
,
pField
,
bNextButton
));
std
::
unique
_ptr
<
AbstractDropDownFieldDialog
>
pDlg
(
pFact
->
CreateDropDownFieldDialog
(
NULL
,
*
this
,
pField
,
bNextButton
));
OSL_ENSURE
(
pDlg
,
"Dialog creation failed!"
);
if
(
pWindowState
&&
!
pWindowState
->
isEmpty
())
pDlg
->
SetWindowState
(
*
pWindowState
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment