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
5d456dc5
Kaydet (Commit)
5d456dc5
authored
Mar 17, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
dbaccess: prefer passing OUString by reference
Change-Id: I7cec02a40db48ce3d3003b3808d06ff0455a6eb4
üst
12bb4fdd
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
19 additions
and
19 deletions
+19
-19
SingleSelectQueryComposer.cxx
dbaccess/source/core/api/SingleSelectQueryComposer.cxx
+5
-5
databasedocument.cxx
dbaccess/source/core/dataaccess/databasedocument.cxx
+1
-1
SingleSelectQueryComposer.hxx
dbaccess/source/core/inc/SingleSelectQueryComposer.hxx
+3
-3
macromigrationdialog.cxx
dbaccess/source/ext/macromigration/macromigrationdialog.cxx
+1
-1
TableGrantCtrl.cxx
dbaccess/source/ui/control/TableGrantCtrl.cxx
+1
-1
dbfindex.cxx
dbaccess/source/ui/dlg/dbfindex.cxx
+1
-1
dbfindex.hxx
dbaccess/source/ui/dlg/dbfindex.hxx
+1
-1
generalpage.cxx
dbaccess/source/ui/dlg/generalpage.cxx
+2
-2
generalpage.hxx
dbaccess/source/ui/dlg/generalpage.hxx
+2
-2
TableGrantCtrl.hxx
dbaccess/source/ui/inc/TableGrantCtrl.hxx
+1
-1
dsmeta.cxx
dbaccess/source/ui/misc/dsmeta.cxx
+1
-1
No files found.
dbaccess/source/core/api/SingleSelectQueryComposer.cxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -437,14 +437,14 @@ Sequence< Sequence< PropertyValue > > SAL_CALL OSingleSelectQueryComposer::getSt
void
SAL_CALL
OSingleSelectQueryComposer
::
appendHavingClauseByColumn
(
const
Reference
<
XPropertySet
>&
column
,
sal_Bool
andCriteria
,
sal_Int32
filterOperator
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
SAL_INFO
(
"dbaccess"
,
"OSingleSelectQueryComposer::appendHavingClauseByColumn"
);
::
std
::
mem_fun1_t
<
bool
,
OSingleSelectQueryComposer
,
OUString
>
F_tmp
(
&
OSingleSelectQueryComposer
::
implSetHavingClause
);
::
std
::
mem_fun1_t
<
bool
,
OSingleSelectQueryComposer
,
const
OUString
&
>
F_tmp
(
&
OSingleSelectQueryComposer
::
implSetHavingClause
);
setConditionByColumn
(
column
,
andCriteria
,
F_tmp
,
filterOperator
);
}
void
SAL_CALL
OSingleSelectQueryComposer
::
appendFilterByColumn
(
const
Reference
<
XPropertySet
>&
column
,
sal_Bool
andCriteria
,
sal_Int32
filterOperator
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
SAL_INFO
(
"dbaccess"
,
"OSingleSelectQueryComposer::appendFilterByColumn"
);
::
std
::
mem_fun1_t
<
bool
,
OSingleSelectQueryComposer
,
OUString
>
F_tmp
(
&
OSingleSelectQueryComposer
::
implSetFilter
);
::
std
::
mem_fun1_t
<
bool
,
OSingleSelectQueryComposer
,
const
OUString
&
>
F_tmp
(
&
OSingleSelectQueryComposer
::
implSetFilter
);
setConditionByColumn
(
column
,
andCriteria
,
F_tmp
,
filterOperator
);
}
...
...
@@ -643,8 +643,8 @@ void SAL_CALL OSingleSelectQueryComposer::setElementaryQuery( const OUString& _r
namespace
{
OUString
getComposedClause
(
const
OUString
_rElementaryClause
,
const
OUString
_rAdditionalClause
,
TokenComposer
&
_rComposer
,
const
OUString
_rKeyword
)
OUString
getComposedClause
(
const
OUString
&
_rElementaryClause
,
const
OUString
&
_rAdditionalClause
,
TokenComposer
&
_rComposer
,
const
OUString
&
_rKeyword
)
{
_rComposer
.
clear
();
_rComposer
.
append
(
_rElementaryClause
);
...
...
@@ -1548,7 +1548,7 @@ void SAL_CALL OSingleSelectQueryComposer::setStructuredHavingClause( const Seque
setHavingClause
(
lcl_getCondition
(
filter
,
aPredicateInput
,
getColumns
()));
}
void
OSingleSelectQueryComposer
::
setConditionByColumn
(
const
Reference
<
XPropertySet
>&
column
,
sal_Bool
andCriteria
,
::
std
::
mem_fun1_t
<
bool
,
OSingleSelectQueryComposer
,
OUString
>&
_aSetFunctor
,
sal_Int32
filterOperator
)
void
OSingleSelectQueryComposer
::
setConditionByColumn
(
const
Reference
<
XPropertySet
>&
column
,
sal_Bool
andCriteria
,
::
std
::
mem_fun1_t
<
bool
,
OSingleSelectQueryComposer
,
const
OUString
&
>&
_aSetFunctor
,
sal_Int32
filterOperator
)
{
SAL_INFO
(
"dbaccess"
,
"OSingleSelectQueryComposer::setConditionByColumn"
);
::
connectivity
::
checkDisposed
(
OSubComponent
::
rBHelper
.
bDisposed
);
...
...
dbaccess/source/core/dataaccess/databasedocument.cxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -349,7 +349,7 @@ namespace
}
}
static
Sequence
<
PropertyValue
>
lcl_appendFileNameToDescriptor
(
const
::
comphelper
::
NamedValueCollection
&
_rDescriptor
,
const
OUString
_rURL
)
static
Sequence
<
PropertyValue
>
lcl_appendFileNameToDescriptor
(
const
::
comphelper
::
NamedValueCollection
&
_rDescriptor
,
const
OUString
&
_rURL
)
{
::
comphelper
::
NamedValueCollection
aMutableDescriptor
(
_rDescriptor
);
if
(
!
_rURL
.
isEmpty
()
)
...
...
dbaccess/source/core/inc/SingleSelectQueryComposer.hxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -133,7 +133,7 @@ namespace dbaccess
void
setConditionByColumn
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>&
column
,
sal_Bool
andCriteria
,
::
std
::
mem_fun1_t
<
bool
,
OSingleSelectQueryComposer
,
OUString
>&
_aSetFunctor
,
::
std
::
mem_fun1_t
<
bool
,
OSingleSelectQueryComposer
,
const
OUString
&
>&
_aSetFunctor
,
sal_Int32
filterOperator
);
/** getStructuredCondition returns the structured condition for the where or having clause
...
...
@@ -150,8 +150,8 @@ namespace dbaccess
setCurrentColumns
(
EColumnType
_eType
,
const
::
rtl
::
Reference
<
::
connectivity
::
OSQLColumns
>&
_rCols
);
//helper methods for mem_fun_t
inline
bool
implSetFilter
(
OUString
_sFilter
)
{
setFilter
(
_sFilter
);
return
true
;}
inline
bool
implSetHavingClause
(
OUString
_sFilter
)
{
setHavingClause
(
_sFilter
);
return
true
;}
inline
bool
implSetFilter
(
const
OUString
&
_sFilter
)
{
setFilter
(
_sFilter
);
return
true
;}
inline
bool
implSetHavingClause
(
const
OUString
&
_sFilter
)
{
setHavingClause
(
_sFilter
);
return
true
;}
/** returns the part of the seelect statement
@param _ePart
...
...
dbaccess/source/ext/macromigration/macromigrationdialog.cxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -371,7 +371,7 @@ namespace dbmm
{
bool
lcl_equalURLs_nothrow
(
const
Reference
<
XComponentContext
>&
context
,
const
OUString
&
_lhs
,
const
OUString
_rhs
)
const
OUString
&
_lhs
,
const
OUString
&
_rhs
)
{
// the cheap situation: the URLs are equal
if
(
_lhs
==
_rhs
)
...
...
dbaccess/source/ui/control/TableGrantCtrl.cxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -341,7 +341,7 @@ sal_Bool OTableGrantControl::isAllowed(sal_uInt16 _nColumnId,sal_Int32 _nPrivile
return
bAllowed
;
}
void
OTableGrantControl
::
setUserName
(
const
OUString
_sUserName
)
void
OTableGrantControl
::
setUserName
(
const
OUString
&
_sUserName
)
{
m_sUserName
=
_sUserName
;
m_aPrivMap
=
TTablePrivilegeMap
();
...
...
dbaccess/source/ui/dlg/dbfindex.cxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -40,7 +40,7 @@ using namespace ::svt;
const
OString
aGroupIdent
(
"dBase III"
);
ODbaseIndexDialog
::
ODbaseIndexDialog
(
Window
*
pParent
,
OUString
aDataSrcName
)
ODbaseIndexDialog
::
ODbaseIndexDialog
(
Window
*
pParent
,
const
OUString
&
aDataSrcName
)
:
ModalDialog
(
pParent
,
"DBaseIndexDialog"
,
"dbaccess/ui/dbaseindexdialog.ui"
)
,
m_aDSN
(
aDataSrcName
)
,
m_bCaseSensitiv
(
true
)
...
...
dbaccess/source/ui/dlg/dbfindex.hxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -112,7 +112,7 @@ protected:
void
checkButtons
();
public
:
ODbaseIndexDialog
(
Window
*
pParent
,
OUString
aDataSrcName
);
ODbaseIndexDialog
(
Window
*
pParent
,
const
OUString
&
aDataSrcName
);
};
}
// namespace dbaui
...
...
dbaccess/source/ui/dlg/generalpage.cxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -354,7 +354,7 @@ namespace dbaui
return
_inout_rDisplayName
.
getLength
()
>
0
;
}
void
OGeneralPage
::
insertDatasourceTypeEntryData
(
const
OUString
&
_sType
,
OUString
sDisplayName
)
void
OGeneralPage
::
insertDatasourceTypeEntryData
(
const
OUString
&
_sType
,
const
OUString
&
sDisplayName
)
{
// insert a (temporary) entry
sal_uInt16
nPos
=
m_pDatasourceType
->
InsertEntry
(
sDisplayName
);
...
...
@@ -363,7 +363,7 @@ namespace dbaui
m_aURLPrefixes
[
nPos
]
=
_sType
;
}
void
OGeneralPageWizard
::
insertEmbeddedDBTypeEntryData
(
const
OUString
&
_sType
,
OUString
sDisplayName
)
void
OGeneralPageWizard
::
insertEmbeddedDBTypeEntryData
(
const
OUString
&
_sType
,
const
OUString
&
sDisplayName
)
{
// insert a (temporary) entry
sal_uInt16
nPos
=
m_pEmbeddedDBType
->
InsertEntry
(
sDisplayName
);
...
...
dbaccess/source/ui/dlg/generalpage.hxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -54,7 +54,7 @@ namespace dbaui
sal_Bool
m_bDisplayingInvalid
:
1
;
// the currently displayed data source is deleted
bool
m_bInitTypeList
:
1
;
bool
approveDatasourceType
(
const
OUString
&
_sURLPrefix
,
OUString
&
_inout_rDisplayName
);
void
insertDatasourceTypeEntryData
(
const
OUString
&
_sType
,
OUString
sDisplayName
);
void
insertDatasourceTypeEntryData
(
const
OUString
&
_sType
,
const
OUString
&
sDisplayName
);
protected
:
ListBox
*
m_pDatasourceType
;
...
...
@@ -159,7 +159,7 @@ namespace dbaui
m_aControlDependencies
;
bool
m_bInitEmbeddedDBList
:
1
;
void
insertEmbeddedDBTypeEntryData
(
const
OUString
&
_sType
,
OUString
sDisplayName
);
void
insertEmbeddedDBTypeEntryData
(
const
OUString
&
_sType
,
const
OUString
&
sDisplayName
);
public
:
void
SetCreationModeHandler
(
const
Link
&
_rHandler
)
{
m_aCreationModeHandler
=
_rHandler
;
}
...
...
dbaccess/source/ui/inc/TableGrantCtrl.hxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -62,7 +62,7 @@ public:
OTableGrantControl
(
Window
*
pParent
,
const
ResId
&
_RsId
);
virtual
~
OTableGrantControl
();
void
UpdateTables
();
void
setUserName
(
const
OUString
_sUserName
);
void
setUserName
(
const
OUString
&
_sUserName
);
void
setGrantUser
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbcx
::
XAuthorizable
>&
_xGrantUser
);
void
setTablesSupplier
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbcx
::
XTablesSupplier
>&
_xTablesSup
);
...
...
dbaccess/source/ui/misc/dsmeta.cxx
Dosyayı görüntüle @
5d456dc5
...
...
@@ -84,7 +84,7 @@ namespace dbaui
return
s_aMappings
;
}
static
const
FeatureSet
&
lcl_getFeatureSet
(
const
OUString
_rURL
)
static
const
FeatureSet
&
lcl_getFeatureSet
(
const
OUString
&
_rURL
)
{
typedef
::
std
::
map
<
OUString
,
FeatureSet
>
FeatureSets
;
static
FeatureSets
s_aFeatureSets
;
...
...
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