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
3b206d48
Kaydet (Commit)
3b206d48
authored
Eyl 30, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
forms: std::auto_ptr -> std::unique_ptr
Change-Id: Ia8f045715a508de77c8ce86cf224a3038162faac
üst
3b5345e1
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
16 additions
and
27 deletions
+16
-27
ComboBox.hxx
forms/source/component/ComboBox.hxx
+1
-1
Edit.hxx
forms/source/component/Edit.hxx
+1
-1
Pattern.hxx
forms/source/component/Pattern.hxx
+1
-1
cachedrowset.hxx
forms/source/component/cachedrowset.hxx
+1
-1
clickableimage.hxx
forms/source/component/clickableimage.hxx
+1
-1
controlfeatureinterception.hxx
forms/source/inc/controlfeatureinterception.hxx
+1
-3
formnavigation.hxx
forms/source/inc/formnavigation.hxx
+2
-6
richtextmodel.cxx
forms/source/richtext/richtextmodel.cxx
+0
-1
richtextmodel.hxx
forms/source/richtext/richtextmodel.hxx
+1
-1
datatypes.cxx
forms/source/xforms/datatypes.cxx
+1
-3
datatypes.hxx
forms/source/xforms/datatypes.hxx
+1
-1
replace.cxx
forms/source/xforms/submission/replace.cxx
+2
-4
submission.hxx
forms/source/xforms/submission/submission.hxx
+1
-1
submission_post.cxx
forms/source/xforms/submission/submission_post.cxx
+1
-1
submission_put.cxx
forms/source/xforms/submission/submission_put.cxx
+1
-1
No files found.
forms/source/component/ComboBox.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -60,7 +60,7 @@ class OComboBoxModel
::
com
::
sun
::
star
::
form
::
ListSourceType
m_eListSourceType
;
// ListSource's type
bool
m_bEmptyIsNull
;
// Empty string is interpreted as NULL
::
std
::
auto
_ptr
<
::
dbtools
::
FormattedColumnValue
>
m_pValueFormatter
;
::
std
::
unique
_ptr
<
::
dbtools
::
FormattedColumnValue
>
m_pValueFormatter
;
...
...
forms/source/component/Edit.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -34,7 +34,7 @@ namespace frm
class
OEditModel
:
public
OEditBaseModel
{
::
std
::
auto
_ptr
<
::
dbtools
::
FormattedColumnValue
>
::
std
::
unique
_ptr
<
::
dbtools
::
FormattedColumnValue
>
m_pValueFormatter
;
bool
m_bMaxTextLenModified
:
1
;
// set to <TRUE/> when we change the MaxTextLen of the aggregate
...
...
forms/source/component/Pattern.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -35,7 +35,7 @@ class OPatternModel
{
private
:
::
com
::
sun
::
star
::
uno
::
Any
m_aLastKnownValue
;
::
std
::
auto
_ptr
<
::
dbtools
::
FormattedColumnValue
>
::
std
::
unique
_ptr
<
::
dbtools
::
FormattedColumnValue
>
m_pFormattedValue
;
protected
:
...
...
forms/source/component/cachedrowset.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -72,7 +72,7 @@ namespace frm
void
setConnection
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>&
_rxConnection
);
private
:
::
std
::
auto
_ptr
<
CachedRowSet_Data
>
m_pData
;
::
std
::
unique
_ptr
<
CachedRowSet_Data
>
m_pData
;
};
...
...
forms/source/component/clickableimage.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -178,7 +178,7 @@ namespace frm
private
:
OImageProducerThread_Impl
*
m_pThread
;
::
cppu
::
OInterfaceContainerHelper
m_aSubmissionVetoListeners
;
::
std
::
auto
_ptr
<
ControlFeatureInterception
>
::
std
::
unique
_ptr
<
ControlFeatureInterception
>
m_pFeatureInterception
;
protected
:
...
...
forms/source/inc/controlfeatureinterception.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -49,9 +49,7 @@ namespace frm
private
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XDispatchProviderInterceptor
>
m_xFirstDispatchInterceptor
;
SAL_WNODEPRECATED_DECLARATIONS_PUSH
::
std
::
auto_ptr
<
UrlTransformer
>
m_pUrlTransformer
;
SAL_WNODEPRECATED_DECLARATIONS_POP
::
std
::
unique_ptr
<
UrlTransformer
>
m_pUrlTransformer
;
public
:
/** retrieves our URL transformer, so our clients may use it, too
...
...
forms/source/inc/formnavigation.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -66,10 +66,8 @@ namespace frm
private
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xORB
;
SAL_WNODEPRECATED_DECLARATIONS_PUSH
::
std
::
auto_ptr
<
ControlFeatureInterception
>
::
std
::
unique_ptr
<
ControlFeatureInterception
>
m_pFeatureInterception
;
SAL_WNODEPRECATED_DECLARATIONS_POP
// all supported features
FeatureMap
m_aSupportedFeatures
;
...
...
@@ -181,9 +179,7 @@ namespace frm
class
OFormNavigationMapper
{
private
:
SAL_WNODEPRECATED_DECLARATIONS_PUSH
::
std
::
auto_ptr
<
UrlTransformer
>
m_pUrlTransformer
;
SAL_WNODEPRECATED_DECLARATIONS_POP
::
std
::
unique_ptr
<
UrlTransformer
>
m_pUrlTransformer
;
public
:
OFormNavigationMapper
(
...
...
forms/source/richtext/richtextmodel.cxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -90,7 +90,6 @@ namespace frm
ORichTextModel
::
ORichTextModel
(
const
ORichTextModel
*
_pOriginal
,
const
Reference
<
XComponentContext
>&
_rxFactory
)
:
OControlModel
(
_pOriginal
,
_rxFactory
,
false
)
,
FontControlModel
(
_pOriginal
)
,
m_pEngine
(
NULL
)
,
m_bSettingEngineText
(
false
)
,
m_aModifyListeners
(
m_aMutex
)
{
...
...
forms/source/richtext/richtextmodel.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -89,7 +89,7 @@ namespace frm
bool
m_bMultiLine
;
// </properties_for_awt_edit_compatibility>
::
std
::
auto
_ptr
<
RichTextEngine
>
::
std
::
unique
_ptr
<
RichTextEngine
>
m_pEngine
;
bool
m_bSettingEngineText
;
...
...
forms/source/xforms/datatypes.cxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -192,8 +192,7 @@ namespace xforms
namespace
{
SAL_WNODEPRECATED_DECLARATIONS_PUSH
static
void
lcl_initializePatternMatcher
(
::
std
::
auto_ptr
<
RegexMatcher
>&
_rpMatcher
,
const
OUString
&
_rPattern
)
static
void
lcl_initializePatternMatcher
(
::
std
::
unique_ptr
<
RegexMatcher
>&
_rpMatcher
,
const
OUString
&
_rPattern
)
{
UErrorCode
nMatchStatus
=
U_ZERO_ERROR
;
UnicodeString
aIcuPattern
(
reinterpret_cast
<
const
UChar
*>
(
_rPattern
.
getStr
()),
_rPattern
.
getLength
()
);
// UChar != sal_Unicode in MinGW
...
...
@@ -201,7 +200,6 @@ namespace xforms
OSL_ENSURE
(
U_SUCCESS
(
nMatchStatus
),
"lcl_initializePatternMatcher: invalid pattern property!"
);
// if asserts, then something changed our pattern without going to convertFastPropertyValue/checkPropertySanity
}
SAL_WNODEPRECATED_DECLARATIONS_POP
static
bool
lcl_matchString
(
RegexMatcher
&
_rMatcher
,
const
OUString
&
_rText
)
{
...
...
forms/source/xforms/datatypes.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -62,7 +62,7 @@ namespace xforms
sal_uInt16
m_nWST
;
// </properties>
::
std
::
auto
_ptr
<
U_NAMESPACE_QUALIFIER
RegexMatcher
>
::
std
::
unique
_ptr
<
U_NAMESPACE_QUALIFIER
RegexMatcher
>
m_pPatternMatcher
;
bool
m_bPatternMatcherDirty
;
...
...
forms/source/xforms/submission/replace.cxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -107,11 +107,10 @@ CSubmission::SubmissionResult CSubmission::replace(const OUString& aReplace, con
return
CSubmission
::
UNKNOWN_ERROR
;
}
SAL_WNODEPRECATED_DECLARATIONS_PUSH
::
std
::
auto_ptr
<
CSerialization
>
CSubmission
::
createSerialization
(
const
Reference
<
XInteractionHandler
>&
_xHandler
,
Reference
<
XCommandEnvironment
>&
_rOutEnv
)
::
std
::
unique_ptr
<
CSerialization
>
CSubmission
::
createSerialization
(
const
Reference
<
XInteractionHandler
>&
_xHandler
,
Reference
<
XCommandEnvironment
>&
_rOutEnv
)
{
// PUT always uses application/xml
::
std
::
auto
_ptr
<
CSerialization
>
apSerialization
(
new
CSerializationAppXML
());
::
std
::
unique
_ptr
<
CSerialization
>
apSerialization
(
new
CSerializationAppXML
());
apSerialization
->
setSource
(
m_aFragment
);
apSerialization
->
serialize
();
...
...
@@ -130,6 +129,5 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
_rOutEnv
=
pHelper
;
return
apSerialization
;
}
SAL_WNODEPRECATED_DECLARATIONS_POP
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
forms/source/xforms/submission/submission.hxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -117,7 +117,7 @@ protected:
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_xContext
;
OUString
m_aEncoding
;
::
std
::
auto
_ptr
<
CSerialization
>
createSerialization
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
task
::
XInteractionHandler
>&
aHandler
::
std
::
unique
_ptr
<
CSerialization
>
createSerialization
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
task
::
XInteractionHandler
>&
aHandler
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>&
_rOutEnv
);
public
:
...
...
forms/source/xforms/submission/submission_post.cxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -48,7 +48,7 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const css::uno::Reference<
{
// PUT always uses application/xml
css
::
uno
::
Reference
<
XCommandEnvironment
>
aEnvironment
;
auto
_ptr
<
CSerialization
>
apSerialization
(
createSerialization
(
aInteractionHandler
,
aEnvironment
));
unique
_ptr
<
CSerialization
>
apSerialization
(
createSerialization
(
aInteractionHandler
,
aEnvironment
));
try
{
ucbhelper
::
Content
aContent
(
m_aURLObj
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
aEnvironment
,
comphelper
::
getProcessComponentContext
());
...
...
forms/source/xforms/submission/submission_put.cxx
Dosyayı görüntüle @
3b206d48
...
...
@@ -45,7 +45,7 @@ CSubmissionPut::CSubmissionPut(const OUString& aURL, const css::uno::Reference<
CSubmission
::
SubmissionResult
CSubmissionPut
::
submit
(
const
css
::
uno
::
Reference
<
css
::
task
::
XInteractionHandler
>&
aInteractionHandler
)
{
css
::
uno
::
Reference
<
XCommandEnvironment
>
aEnvironment
;
auto
_ptr
<
CSerialization
>
apSerialization
(
createSerialization
(
aInteractionHandler
,
aEnvironment
));
unique
_ptr
<
CSerialization
>
apSerialization
(
createSerialization
(
aInteractionHandler
,
aEnvironment
));
try
{
ucbhelper
::
Content
aContent
(
m_aURLObj
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
aEnvironment
,
comphelper
::
getProcessComponentContext
());
...
...
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