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
35c81431
Kaydet (Commit)
35c81431
authored
Haz 26, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: I89536204943c0bb86ad9a7cf11050d040650078d
üst
a212bd0e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
36 deletions
+27
-36
hldocntp.cxx
cui/source/dialogs/hldocntp.cxx
+1
-1
optgenrl.cxx
cui/source/options/optgenrl.cxx
+1
-1
optjava.cxx
cui/source/options/optjava.cxx
+1
-1
optpath.cxx
cui/source/options/optpath.cxx
+19
-25
webconninfo.cxx
cui/source/options/webconninfo.cxx
+5
-8
No files found.
cui/source/dialogs/hldocntp.cxx
Dosyayı görüntüle @
35c81431
...
...
@@ -347,7 +347,7 @@ void SvxHyperlinkNewDocTp::DoApply ()
OUString
aStrFlags
(
'S'
);
if
(
m_pRbtEditLater
->
IsChecked
()
)
{
aStrFlags
+=
OUString
(
'H'
)
;
aStrFlags
+=
"H"
;
}
SfxStringItem
aFlags
(
SID_OPTIONS
,
aStrFlags
);
...
...
cui/source/options/optgenrl.cxx
Dosyayı görüntüle @
35c81431
...
...
@@ -378,7 +378,7 @@ IMPL_LINK( SvxGeneralTabPage, ModifyHdl_Impl, Edit *, pEdit )
rShortName
.
pEdit
->
SetText
(
OUString
());
}
while
((
unsigned
)
sShortName
.
getLength
()
<
nInits
)
sShortName
+=
OUString
(
' '
)
;
sShortName
+=
" "
;
OUString
sName
=
pEdit
->
GetText
();
OUString
sLetter
=
sName
.
isEmpty
()
?
OUString
(
sal_Unicode
(
' '
))
:
sName
.
copy
(
0
,
1
);
...
...
cui/source/options/optjava.cxx
Dosyayı görüntüle @
35c81431
...
...
@@ -1110,7 +1110,7 @@ OUString SvxJavaClassPathDlg::GetClassPath() const
for
(
sal_Int32
i
=
0
;
i
<
nCount
;
++
i
)
{
if
(
!
sPath
.
isEmpty
()
)
sPath
+=
OUString
(
CLASSPATH_DELIMITER
);
sPath
+=
OUString
Literal1
<
CLASSPATH_DELIMITER
>
(
);
OUString
*
pFullPath
=
static_cast
<
OUString
*
>
(
m_pPathList
->
GetEntryData
(
i
)
);
if
(
pFullPath
)
sPath
+=
*
pFullPath
;
...
...
cui/source/options/optpath.cxx
Dosyayı görüntüle @
35c81431
...
...
@@ -63,9 +63,9 @@ using namespace svx;
#define ITEMID_TYPE 1
#define ITEMID_PATH 2
#define POSTFIX_INTERNAL
OUString("_internal")
#define POSTFIX_USER
OUString("_user")
#define POSTFIX_WRITABLE
OUString("_writable")
#define POSTFIX_INTERNAL
"_internal"
#define POSTFIX_USER
"_user"
#define POSTFIX_WRITABLE
"_writable"
#define VAR_ONE "%1"
#define IODLG_CONFIGNAME OUString("FilePicker_Save")
...
...
@@ -155,7 +155,7 @@ OUString Convert_Impl( const OUString& rValue )
else
if
(
::
utl
::
LocalFileHelper
::
IsFileContent
(
aValue
)
)
aReturn
+=
aObj
.
GetURLPath
(
INetURLObject
::
DECODE_WITH_CHARSET
);
if
(
i
+
1
<
nCount
)
aReturn
+=
OUString
(
MULTIPATH_DELIMITER
);
aReturn
+=
OUString
Literal1
<
MULTIPATH_DELIMITER
>
(
);
}
return
aReturn
;
...
...
@@ -313,7 +313,7 @@ void SvxPathTabPage::Reset( const SfxItemSet* )
GetPathList
(
i
,
sInternal
,
sUser
,
sWritable
,
bReadOnly
);
OUString
sTmpPath
=
sUser
;
if
(
!
sTmpPath
.
isEmpty
()
&&
!
sWritable
.
isEmpty
()
)
sTmpPath
+=
OUString
(
MULTIPATH_DELIMITER
);
sTmpPath
+=
OUString
Literal1
<
MULTIPATH_DELIMITER
>
(
);
sTmpPath
+=
sWritable
;
OUString
aValue
(
sTmpPath
);
aValue
=
Convert_Impl
(
aValue
);
...
...
@@ -434,7 +434,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, StandardHdl_Impl)
if
(
!
bFound
)
{
if
(
!
sTemp
.
isEmpty
()
)
sTemp
+=
OUString
(
MULTIPATH_DELIMITER
);
sTemp
+=
OUString
Literal1
<
MULTIPATH_DELIMITER
>
(
);
sTemp
+=
sOnePath
;
}
}
...
...
@@ -444,7 +444,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, StandardHdl_Impl)
for
(
i
=
0
;
nOldCount
>
0
&&
i
<
nOldCount
-
1
;
++
i
)
{
if
(
!
sUserPath
.
isEmpty
()
)
sUserPath
+=
OUString
(
MULTIPATH_DELIMITER
);
sUserPath
+=
OUString
Literal1
<
MULTIPATH_DELIMITER
>
(
);
sUserPath
+=
sTemp
.
getToken
(
i
,
MULTIPATH_DELIMITER
);
}
sWritablePath
=
sTemp
.
getToken
(
nOldCount
-
1
,
MULTIPATH_DELIMITER
);
...
...
@@ -554,7 +554,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, PathHdl_Impl)
OUString
sPath
(
sUser
);
if
(
!
sPath
.
isEmpty
()
)
sPath
+=
OUString
(
MULTIPATH_DELIMITER
);
sPath
+=
OUString
Literal1
<
MULTIPATH_DELIMITER
>
(
);
sPath
+=
sWritable
;
pMultiDlg
->
SetPath
(
sPath
);
...
...
@@ -721,9 +721,8 @@ void SvxPathTabPage::GetPathList(
}
// load internal paths
OUString
sProp
(
sCfgName
);
sProp
+=
POSTFIX_INTERNAL
;
Any
aAny
=
pImpl
->
m_xPathSettings
->
getPropertyValue
(
sProp
);
Any
aAny
=
pImpl
->
m_xPathSettings
->
getPropertyValue
(
sCfgName
+
POSTFIX_INTERNAL
);
Sequence
<
OUString
>
aPathSeq
;
if
(
aAny
>>=
aPathSeq
)
{
...
...
@@ -738,9 +737,8 @@ void SvxPathTabPage::GetPathList(
}
}
// load user paths
sProp
=
sCfgName
;
sProp
+=
POSTFIX_USER
;
aAny
=
pImpl
->
m_xPathSettings
->
getPropertyValue
(
sProp
);
aAny
=
pImpl
->
m_xPathSettings
->
getPropertyValue
(
sCfgName
+
POSTFIX_USER
);
if
(
aAny
>>=
aPathSeq
)
{
long
i
,
nCount
=
aPathSeq
.
getLength
();
...
...
@@ -754,17 +752,15 @@ void SvxPathTabPage::GetPathList(
}
}
// then the writable path
sProp
=
sCfgName
;
sProp
+=
POSTFIX_WRITABLE
;
aAny
=
pImpl
->
m_xPathSettings
->
getPropertyValue
(
sProp
);
aAny
=
pImpl
->
m_xPathSettings
->
getPropertyValue
(
sCfgName
+
POSTFIX_WRITABLE
);
OUString
sWritablePath
;
if
(
aAny
>>=
sWritablePath
)
_rWritablePath
=
sWritablePath
;
// and the readonly flag
sProp
=
sCfgName
;
Reference
<
XPropertySetInfo
>
xInfo
=
pImpl
->
m_xPathSettings
->
getPropertySetInfo
();
Property
aProp
=
xInfo
->
getPropertyByName
(
sProp
);
Property
aProp
=
xInfo
->
getPropertyByName
(
sCfgName
);
_rReadOnly
=
(
(
aProp
.
Attributes
&
PropertyAttribute
::
READONLY
)
==
PropertyAttribute
::
READONLY
);
}
catch
(
const
Exception
&
)
...
...
@@ -796,16 +792,14 @@ void SvxPathTabPage::SetPathList(
OUString
*
pArray
=
aPathSeq
.
getArray
();
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
++
i
)
pArray
[
i
]
=
_rUserPath
.
getToken
(
i
,
cDelim
);
OUString
sProp
(
sCfgName
);
sProp
+=
POSTFIX_USER
;
Any
aValue
=
makeAny
(
aPathSeq
);
pImpl
->
m_xPathSettings
->
setPropertyValue
(
sProp
,
aValue
);
pImpl
->
m_xPathSettings
->
setPropertyValue
(
sCfgName
+
POSTFIX_USER
,
aValue
);
// then the writable path
aValue
=
makeAny
(
OUString
(
_rWritablePath
)
);
sProp
=
sCfgName
;
sProp
+=
POSTFIX_WRITABLE
;
pImpl
->
m_xPathSettings
->
setPropertyValue
(
sProp
,
aValue
);
pImpl
->
m_xPathSettings
->
setPropertyValue
(
sCfgName
+
POSTFIX_WRITABLE
,
aValue
);
}
catch
(
const
Exception
&
e
)
{
...
...
cui/source/options/webconninfo.cxx
Dosyayı görüntüle @
35c81431
...
...
@@ -180,10 +180,9 @@ void WebConnectionInfoDialog::FillPasswordList()
{
for
(
sal_Int32
nUserInd
=
0
;
nUserInd
<
aURLEntries
[
nURLInd
].
UserList
.
getLength
();
nUserInd
++
)
{
OUString
aUIEntry
(
aURLEntries
[
nURLInd
].
Url
);
aUIEntry
+=
OUString
(
(
sal_Unicode
)
'\t'
);
aUIEntry
+=
aURLEntries
[
nURLInd
].
UserList
[
nUserInd
].
UserName
;
SvTreeListEntry
*
pEntry
=
m_pPasswordsLB
->
InsertEntry
(
aUIEntry
);
SvTreeListEntry
*
pEntry
=
m_pPasswordsLB
->
InsertEntry
(
aURLEntries
[
nURLInd
].
Url
+
"
\t
"
+
aURLEntries
[
nURLInd
].
UserList
[
nUserInd
].
UserName
);
pEntry
->
SetUserData
(
reinterpret_cast
<
void
*>
(
nCount
++
)
);
}
}
...
...
@@ -196,10 +195,8 @@ void WebConnectionInfoDialog::FillPasswordList()
for
(
sal_Int32
nURLIdx
=
0
;
nURLIdx
<
aUrls
.
getLength
();
nURLIdx
++
)
{
OUString
aUIEntry
(
aUrls
[
nURLIdx
]
);
aUIEntry
+=
OUString
(
(
sal_Unicode
)
'\t'
);
aUIEntry
+=
OUString
(
"*"
);
SvTreeListEntry
*
pEntry
=
m_pPasswordsLB
->
InsertEntry
(
aUIEntry
);
SvTreeListEntry
*
pEntry
=
m_pPasswordsLB
->
InsertEntry
(
aUrls
[
nURLIdx
]
+
"
\t
*"
);
pEntry
->
SetUserData
(
reinterpret_cast
<
void
*>
(
nCount
++
)
);
}
}
...
...
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