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
32ac07a9
Kaydet (Commit)
32ac07a9
authored
Mar 12, 2013
tarafından
Chr. Rossmanith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove RTL_CONSTASCII_STRINGPARAM (unotools)
Change-Id: Id6f9a357431a636c5982964452a0f067e884da96
üst
97346bdd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
37 deletions
+26
-37
localedatawrapper.cxx
unotools/source/i18n/localedatawrapper.cxx
+16
-27
ucblockbytes.cxx
unotools/source/ucbhelper/ucblockbytes.cxx
+8
-8
xtempfile.cxx
unotools/source/ucbhelper/xtempfile.cxx
+2
-2
No files found.
unotools/source/i18n/localedatawrapper.cxx
Dosyayı görüntüle @
32ac07a9
...
...
@@ -339,13 +339,11 @@ void LocaleDataWrapper::invalidateData()
// && !aDebugLocale.EqualsAscii( "es-BR" ) // ?!? Brazil/es
)
{
rtl
::
OUStringBuffer
aMsg
;
aMsg
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"ConvertIsoNamesToLanguage/ConvertLanguageToIsoNames: ambiguous locale (MS-LCID?)
\n
"
));
rtl
::
OUStringBuffer
aMsg
(
"ConvertIsoNamesToLanguage/ConvertLanguageToIsoNames: ambiguous locale (MS-LCID?)
\n
"
);
aMsg
.
append
(
aDebugLocale
);
aMsg
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
" -> 0x"
)
);
aMsg
.
appendAscii
(
" -> 0x"
);
aMsg
.
append
(
static_cast
<
sal_Int32
>
(
eLang
),
16
);
aMsg
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
" -> "
)
);
aMsg
.
appendAscii
(
" -> "
);
aMsg
.
append
(
aBackLanguageTag
.
getBcp47
());
outputCheckMessage
(
aMsg
.
makeStringAndClear
()
);
}
...
...
@@ -610,8 +608,7 @@ void LocaleDataWrapper::getCurrSymbolsImpl()
{
if
(
areChecksEnabled
())
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::getCurrSymbolsImpl: no default currency"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::getCurrSymbolsImpl: no default currency"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
nElem
=
0
;
...
...
@@ -720,8 +717,7 @@ void LocaleDataWrapper::getCurrFormatsImpl()
{
// bad luck
if
(
areChecksEnabled
())
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::getCurrFormatsImpl: no currency formats"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::getCurrFormatsImpl: no currency formats"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
nCurrPositiveFormat
=
nCurrNegativeFormat
=
nCurrFormatDefault
;
...
...
@@ -769,8 +765,7 @@ void LocaleDataWrapper::getCurrFormatsImpl()
scanCurrFormatImpl
(
pFormatArr
[
nElem
].
Code
,
0
,
nSign
,
nPar
,
nNum
,
nBlank
,
nSym
);
if
(
areChecksEnabled
()
&&
(
nNum
==
-
1
||
nSym
==
-
1
))
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::getCurrFormatsImpl: CurrPositiveFormat?"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::getCurrFormatsImpl: CurrPositiveFormat?"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
if
(
nBlank
==
-
1
)
...
...
@@ -798,8 +793,7 @@ void LocaleDataWrapper::getCurrFormatsImpl()
scanCurrFormatImpl
(
rCode
,
nDelim
+
1
,
nSign
,
nPar
,
nNum
,
nBlank
,
nSym
);
if
(
areChecksEnabled
()
&&
(
nNum
==
-
1
||
nSym
==
-
1
||
(
nPar
==
-
1
&&
nSign
==
-
1
)))
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::getCurrFormatsImpl: CurrNegativeFormat?"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::getCurrFormatsImpl: CurrNegativeFormat?"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
// NOTE: one of nPar or nSign are allowed to be -1
...
...
@@ -935,8 +929,7 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const rtl::OUString& rCode )
{
if
(
areChecksEnabled
())
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::scanDateFormat: not all DMY present"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::scanDateFormat: not all DMY present"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
if
(
nDay
==
-
1
)
...
...
@@ -958,8 +951,7 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const rtl::OUString& rCode )
{
if
(
areChecksEnabled
())
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::scanDateFormat: no magic applyable"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::scanDateFormat: no magic applyable"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
return
DMY
;
...
...
@@ -977,8 +969,7 @@ void LocaleDataWrapper::getDateFormatsImpl()
{
// bad luck
if
(
areChecksEnabled
())
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::getDateFormatsImpl: no date formats"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::getDateFormatsImpl: no date formats"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
nDateFormat
=
nLongDateFormat
=
DMY
;
...
...
@@ -1022,16 +1013,14 @@ void LocaleDataWrapper::getDateFormatsImpl()
{
if
(
areChecksEnabled
())
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::getDateFormatsImpl: no edit"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::getDateFormatsImpl: no edit"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
if
(
nDef
==
-
1
)
{
if
(
areChecksEnabled
())
{
rtl
::
OUString
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"LocaleDataWrapper::getDateFormatsImpl: no default"
));
rtl
::
OUString
aMsg
(
"LocaleDataWrapper::getDateFormatsImpl: no default"
);
outputCheckMessage
(
appendLocaleInfo
(
aMsg
)
);
}
if
(
nMedium
!=
-
1
)
...
...
@@ -1078,8 +1067,8 @@ void LocaleDataWrapper::getDigitGroupingImpl()
if
(
!
aGrouping
[
0
])
{
i18n
::
LanguageCountryInfo
aLCInfo
(
getLanguageCountryInfo
());
if
(
aLCInfo
.
Country
.
equalsIgnoreAsciiCase
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"IN"
)
)
||
// India
aLCInfo
.
Country
.
equalsIgnoreAsciiCase
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"BT"
)
)
)
// Bhutan
if
(
aLCInfo
.
Country
.
equalsIgnoreAsciiCase
(
"IN"
)
||
// India
aLCInfo
.
Country
.
equalsIgnoreAsciiCase
(
"BT"
)
)
// Bhutan
{
aGrouping
[
0
]
=
3
;
aGrouping
[
1
]
=
2
;
...
...
@@ -1772,10 +1761,10 @@ rtl::OUString LocaleDataWrapper::appendLocaleInfo(const rtl::OUString& rDebugMsg
rtl
::
OUStringBuffer
aDebugMsg
(
rDebugMsg
);
aDebugMsg
.
append
(
static_cast
<
sal_Unicode
>
(
'\n'
));
aDebugMsg
.
append
(
maLanguageTag
.
getBcp47
());
aDebugMsg
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
" requested
\n
"
)
);
aDebugMsg
.
appendAscii
(
" requested
\n
"
);
LanguageTag
aLoaded
=
getLoadedLanguageTag
();
aDebugMsg
.
append
(
aLoaded
.
getBcp47
());
aDebugMsg
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
" loaded"
)
);
aDebugMsg
.
appendAscii
(
" loaded"
);
return
aDebugMsg
.
makeStringAndClear
();
}
...
...
unotools/source/ucbhelper/ucblockbytes.cxx
Dosyayı görüntüle @
32ac07a9
...
...
@@ -186,7 +186,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
for
(
i
=
0
;
i
<
n
;
i
++
)
{
PropertyChangeEvent
evt
(
rEvent
[
i
]);
if
(
evt
.
PropertyName
==
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"DocumentHeader"
)
))
if
(
evt
.
PropertyName
==
::
rtl
::
OUString
(
"DocumentHeader"
))
{
Sequence
<
DocumentHeaderField
>
aHead
;
if
(
evt
.
NewValue
>>=
aHead
)
...
...
@@ -211,12 +211,12 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
m_xLockBytes
->
SetStreamValid_Impl
();
}
else
if
(
evt
.
PropertyName
==
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"PresentationURL"
)
))
else
if
(
evt
.
PropertyName
==
rtl
::
OUString
(
"PresentationURL"
))
{
::
rtl
::
OUString
aUrl
;
if
(
evt
.
NewValue
>>=
aUrl
)
{
::
rtl
::
OUString
aBad
(
RTL_CONSTASCII_USTRINGPARAM
(
"private:"
)
);
::
rtl
::
OUString
aBad
(
"private:"
);
if
(
!
aUrl
.
startsWith
(
aBad
))
{
// URL changed (Redirection).
...
...
@@ -224,7 +224,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
}
}
}
else
if
(
evt
.
PropertyName
==
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"MediaType"
)
))
else
if
(
evt
.
PropertyName
==
::
rtl
::
OUString
(
"MediaType"
))
{
::
rtl
::
OUString
aContentType
;
if
(
evt
.
NewValue
>>=
aContentType
)
...
...
@@ -910,10 +910,10 @@ static sal_Bool UCBOpenContentSync(
aScheme
=
xContId
->
getContentProviderScheme
();
// now determine whether we use a timeout or not;
if
(
!
aScheme
.
equalsIgnoreAsciiCase
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"http"
)
)
&&
!
aScheme
.
equalsIgnoreAsciiCase
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"https"
)
)
&&
!
aScheme
.
equalsIgnoreAsciiCase
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"vnd.sun.star.webdav"
)
)
&&
!
aScheme
.
equalsIgnoreAsciiCase
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"ftp"
)
))
if
(
!
aScheme
.
equalsIgnoreAsciiCase
(
"http"
)
&&
!
aScheme
.
equalsIgnoreAsciiCase
(
"https"
)
&&
!
aScheme
.
equalsIgnoreAsciiCase
(
"vnd.sun.star.webdav"
)
&&
!
aScheme
.
equalsIgnoreAsciiCase
(
"ftp"
))
return
_UCBOpenContentSync
(
xLockBytes
,
xContent
,
rArg
,
xSink
,
xInteract
,
xProgress
,
xHandler
);
...
...
unotools/source/ucbhelper/xtempfile.cxx
Dosyayı görüntüle @
32ac07a9
...
...
@@ -446,12 +446,12 @@ throw ( ::css::uno::RuntimeException )
::
rtl
::
OUString
OTempFileService
::
getImplementationName_Static
()
{
return
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.io.comp.TempFile"
)
);
return
::
rtl
::
OUString
(
"com.sun.star.io.comp.TempFile"
);
}
::
css
::
uno
::
Sequence
<
::
rtl
::
OUString
>
OTempFileService
::
getSupportedServiceNames_Static
()
{
::
css
::
uno
::
Sequence
<
::
rtl
::
OUString
>
aNames
(
1
);
aNames
[
0
]
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.io.TempFile"
)
)
;
aNames
[
0
]
=
"com.sun.star.io.TempFile"
;
return
aNames
;
}
::
css
::
uno
::
Reference
<
::
css
::
uno
::
XInterface
>
SAL_CALL
XTempFile_createInstance
(
...
...
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