Prefer array over vector for 3 elements container
Change-Id: I3d9bb84e067fdda3486ee21cfd5b5ffa59bc8c5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86591 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
This commit is contained in:
parent
a96ec04a07
commit
03d2fa836e
@ -78,34 +78,35 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
|
|||||||
{
|
{
|
||||||
if ( acceptsURL(url) )
|
if ( acceptsURL(url) )
|
||||||
{
|
{
|
||||||
std::vector< DriverPropertyInfo > aDriverInfo;
|
|
||||||
|
|
||||||
Sequence< OUString > aBoolean(2);
|
Sequence< OUString > aBoolean(2);
|
||||||
aBoolean[0] = "0";
|
aBoolean[0] = "0";
|
||||||
aBoolean[1] = "1";
|
aBoolean[1] = "1";
|
||||||
|
|
||||||
aDriverInfo.push_back(DriverPropertyInfo(
|
DriverPropertyInfo aDriverInfo[] = {
|
||||||
|
{
|
||||||
"CharSet"
|
"CharSet"
|
||||||
,"CharSet of the database."
|
,"CharSet of the database."
|
||||||
,false
|
,false
|
||||||
,OUString()
|
,OUString()
|
||||||
,Sequence< OUString >())
|
,Sequence< OUString >()
|
||||||
);
|
},
|
||||||
aDriverInfo.push_back(DriverPropertyInfo(
|
{
|
||||||
"ShowDeleted"
|
"ShowDeleted"
|
||||||
,"Display inactive records."
|
,"Display inactive records."
|
||||||
,false
|
,false
|
||||||
,"0"
|
,"0"
|
||||||
,aBoolean)
|
,aBoolean
|
||||||
);
|
},
|
||||||
aDriverInfo.push_back(DriverPropertyInfo(
|
{
|
||||||
"EnableSQL92Check"
|
"EnableSQL92Check"
|
||||||
,"Use SQL92 naming constraints."
|
,"Use SQL92 naming constraints."
|
||||||
,false
|
,false
|
||||||
,"0"
|
,"0"
|
||||||
,aBoolean)
|
,aBoolean
|
||||||
);
|
}
|
||||||
return Sequence< DriverPropertyInfo >(aDriverInfo.data(),aDriverInfo.size());
|
};
|
||||||
|
|
||||||
|
return Sequence< DriverPropertyInfo >(aDriverInfo, std::size(aDriverInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedResources aResources;
|
SharedResources aResources;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user