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
fb515368
Kaydet (Commit)
fb515368
authored
Eki 02, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fpicker (Windows): std::auto_ptr -> std::unique_ptr
Change-Id: Id373c3ed6e483a501e07146812ff04353eafcc32
üst
a5e52149
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
15 deletions
+15
-15
FilePicker.cxx
fpicker/source/win32/filepicker/FilePicker.cxx
+2
-2
FilePicker.hxx
fpicker/source/win32/filepicker/FilePicker.hxx
+1
-1
PreviewCtrl.hxx
fpicker/source/win32/filepicker/PreviewCtrl.hxx
+2
-2
WinFileOpenImpl.hxx
fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
+4
-4
asynceventnotifier.cxx
fpicker/source/win32/filepicker/asynceventnotifier.cxx
+1
-1
controlcommand.hxx
fpicker/source/win32/filepicker/controlcommand.hxx
+1
-1
previewadapter.cxx
fpicker/source/win32/filepicker/previewadapter.cxx
+1
-1
previewadapter.hxx
fpicker/source/win32/filepicker/previewadapter.hxx
+1
-1
FolderPicker.cxx
fpicker/source/win32/folderpicker/FolderPicker.cxx
+1
-1
FolderPicker.hxx
fpicker/source/win32/folderpicker/FolderPicker.hxx
+1
-1
No files found.
fpicker/source/win32/filepicker/FilePicker.cxx
Dosyayı görüntüle @
fb515368
...
@@ -76,7 +76,7 @@ CFilePicker::CFilePicker( const uno::Reference<lang::XMultiServiceFactory>& xSer
...
@@ -76,7 +76,7 @@ CFilePicker::CFilePicker( const uno::Reference<lang::XMultiServiceFactory>& xSer
SAL_WARN_IF
(
!
hInstance
,
"fpicker"
,
"The name of the service dll must have changed"
);
SAL_WARN_IF
(
!
hInstance
,
"fpicker"
,
"The name of the service dll must have changed"
);
// create a default FileOpen dialog without any additional ui elements
// create a default FileOpen dialog without any additional ui elements
m_pImpl
=
std
::
auto
_ptr
<
CWinFileOpenImpl
>
(
m_pImpl
=
std
::
unique
_ptr
<
CWinFileOpenImpl
>
(
new
CWinFileOpenImpl
(
new
CWinFileOpenImpl
(
this
,
this
,
true
,
true
,
...
@@ -682,7 +682,7 @@ void SAL_CALL CFilePicker::initialize(const uno::Sequence<uno::Any>& aArguments)
...
@@ -682,7 +682,7 @@ void SAL_CALL CFilePicker::initialize(const uno::Sequence<uno::Any>& aArguments)
// create a new impl-class here based on the
// create a new impl-class here based on the
// given string, if the given string is empty
// given string, if the given string is empty
// we do nothing
// we do nothing
m_pImpl
=
std
::
auto
_ptr
<
CWinFileOpenImpl
>
(
m_pImpl
=
std
::
unique
_ptr
<
CWinFileOpenImpl
>
(
new
CWinFileOpenImpl
(
new
CWinFileOpenImpl
(
this
,
this
,
bFileOpenDialog
,
bFileOpenDialog
,
...
...
fpicker/source/win32/filepicker/FilePicker.hxx
Dosyayı görüntüle @
fb515368
...
@@ -231,7 +231,7 @@ private:
...
@@ -231,7 +231,7 @@ private:
private
:
private
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xServiceMgr
;
// to instanciate own services
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xServiceMgr
;
// to instanciate own services
CAsyncEventNotifier
m_aAsyncEventNotifier
;
CAsyncEventNotifier
m_aAsyncEventNotifier
;
std
::
auto
_ptr
<
CWinFileOpenImpl
>
m_pImpl
;
std
::
unique
_ptr
<
CWinFileOpenImpl
>
m_pImpl
;
};
};
#endif
#endif
...
...
fpicker/source/win32/filepicker/PreviewCtrl.hxx
Dosyayı görüntüle @
fb515368
...
@@ -156,8 +156,8 @@ protected:
...
@@ -156,8 +156,8 @@ protected:
// singleton instance of this class
// singleton instance of this class
virtual
~
CFilePreview
(
);
virtual
~
CFilePreview
(
);
// we use the stl
auto
_ptr class as singleton destroyer
// we use the stl
unique
_ptr class as singleton destroyer
typedef
std
::
auto
_ptr
<
CFilePreview
>
FILEPREVIEW_SINGLETON_DESTROYER_T
;
typedef
std
::
unique
_ptr
<
CFilePreview
>
FILEPREVIEW_SINGLETON_DESTROYER_T
;
protected
:
protected
:
virtual
void
SAL_CALL
onPaint
(
HWND
hWnd
,
HDC
hDC
);
virtual
void
SAL_CALL
onPaint
(
HWND
hWnd
,
HDC
hDC
);
...
...
fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
Dosyayı görüntüle @
fb515368
...
@@ -197,10 +197,10 @@ private:
...
@@ -197,10 +197,10 @@ private:
static
BOOL
CALLBACK
EnumChildWndProc
(
HWND
hWnd
,
LPARAM
lParam
);
static
BOOL
CALLBACK
EnumChildWndProc
(
HWND
hWnd
,
LPARAM
lParam
);
private
:
private
:
std
::
auto_ptr
<
CFilterContainer
>
m_filterContainer
;
std
::
unique_ptr
<
CFilterContainer
>
m_filterContainer
;
std
::
auto_ptr
<
CPreviewAdapter
>
m_Preview
;
std
::
unique_ptr
<
CPreviewAdapter
>
m_Preview
;
std
::
auto_ptr
<
CCustomControlFactory
>
m_CustomControlFactory
;
std
::
unique_ptr
<
CCustomControlFactory
>
m_CustomControlFactory
;
std
::
auto_ptr
<
CCustomControl
>
m_CustomControls
;
std
::
unique_ptr
<
CCustomControl
>
m_CustomControls
;
CFilePicker
*
m_FilePicker
;
CFilePicker
*
m_FilePicker
;
WNDPROC
m_pfnOldDlgProc
;
WNDPROC
m_pfnOldDlgProc
;
OUString
m_defaultName
;
OUString
m_defaultName
;
...
...
fpicker/source/win32/filepicker/asynceventnotifier.cxx
Dosyayı görüntüle @
fb515368
...
@@ -260,7 +260,7 @@ void SAL_CALL CAsyncEventNotifier::run()
...
@@ -260,7 +260,7 @@ void SAL_CALL CAsyncEventNotifier::run()
{
{
while
(
getEventListSize
()
>
0
)
while
(
getEventListSize
()
>
0
)
{
{
std
::
auto
_ptr
<
CEventNotification
>
EventNotification
(
getNextEventRecord
());
std
::
unique
_ptr
<
CEventNotification
>
EventNotification
(
getNextEventRecord
());
removeNextEventRecord
();
removeNextEventRecord
();
::
cppu
::
OInterfaceContainerHelper
*
pICHelper
=
::
cppu
::
OInterfaceContainerHelper
*
pICHelper
=
...
...
fpicker/source/win32/filepicker/controlcommand.hxx
Dosyayı görüntüle @
fb515368
...
@@ -46,7 +46,7 @@ public:
...
@@ -46,7 +46,7 @@ public:
// the client inherits the ownership of the returned
// the client inherits the ownership of the returned
// CControlCommandResult and has to delete it or he may
// CControlCommandResult and has to delete it or he may
// use the
auto
_ptr template for automatic deletion
// use the
unique
_ptr template for automatic deletion
virtual
CControlCommandResult
*
SAL_CALL
handleRequest
(
CControlCommandRequest
*
aRequest
);
virtual
CControlCommandResult
*
SAL_CALL
handleRequest
(
CControlCommandRequest
*
aRequest
);
// clients of this method should use the returned
// clients of this method should use the returned
...
...
fpicker/source/win32/filepicker/previewadapter.cxx
Dosyayı görüntüle @
fb515368
...
@@ -86,7 +86,7 @@ protected:
...
@@ -86,7 +86,7 @@ protected:
// member
// member
protected
:
protected
:
HINSTANCE
m_Instance
;
HINSTANCE
m_Instance
;
std
::
auto_ptr
<
PreviewBase
>
m_Preview
;
std
::
unique_ptr
<
PreviewBase
>
m_Preview
;
HWND
m_FileDialog
;
HWND
m_FileDialog
;
int
m_RightMargin
;
int
m_RightMargin
;
...
...
fpicker/source/win32/filepicker/previewadapter.hxx
Dosyayı görüntüle @
fb515368
...
@@ -87,7 +87,7 @@ public:
...
@@ -87,7 +87,7 @@ public:
private
:
private
:
// hide implementation details using the
// hide implementation details using the
// bridge pattern
// bridge pattern
std
::
auto
_ptr
<
CPreviewAdapterImpl
>
m_pImpl
;
std
::
unique
_ptr
<
CPreviewAdapterImpl
>
m_pImpl
;
// prevent copy and assignment
// prevent copy and assignment
private
:
private
:
...
...
fpicker/source/win32/folderpicker/FolderPicker.cxx
Dosyayı görüntüle @
fb515368
...
@@ -64,7 +64,7 @@ namespace
...
@@ -64,7 +64,7 @@ namespace
CFolderPicker
::
CFolderPicker
(
const
Reference
<
XMultiServiceFactory
>&
xServiceMgr
)
:
CFolderPicker
::
CFolderPicker
(
const
Reference
<
XMultiServiceFactory
>&
xServiceMgr
)
:
m_xServiceMgr
(
xServiceMgr
)
m_xServiceMgr
(
xServiceMgr
)
{
{
m_pFolderPickerImpl
=
std
::
auto
_ptr
<
CWinFolderPickerImpl
>
(
new
CWinFolderPickerImpl
(
this
)
);
m_pFolderPickerImpl
=
std
::
unique
_ptr
<
CWinFolderPickerImpl
>
(
new
CWinFolderPickerImpl
(
this
)
);
}
}
...
...
fpicker/source/win32/folderpicker/FolderPicker.hxx
Dosyayı görüntüle @
fb515368
...
@@ -99,7 +99,7 @@ public:
...
@@ -99,7 +99,7 @@ public:
private
:
private
:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xServiceMgr
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xServiceMgr
;
std
::
auto
_ptr
<
CWinFolderPickerImpl
>
m_pFolderPickerImpl
;
std
::
unique
_ptr
<
CWinFolderPickerImpl
>
m_pFolderPickerImpl
;
osl
::
Mutex
m_aMutex
;
osl
::
Mutex
m_aMutex
;
// prevent copy and assignment
// prevent copy and assignment
...
...
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