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
9549fb88
Kaydet (Commit)
9549fb88
authored
May 27, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prevent accidental mis-uses of VclPtr address-of operator
Change-Id: Ie3588d502e9545ea64bf836b2a0bdc0caead2247
üst
668408fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
16 deletions
+28
-16
advancedsettings.cxx
dbaccess/source/ui/dlg/advancedsettings.cxx
+20
-16
vclptr.hxx
include/vcl/vclptr.hxx
+8
-0
No files found.
dbaccess/source/ui/dlg/advancedsettings.cxx
Dosyayı görüntüle @
9549fb88
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <sal/config.h>
#include <memory>
#include "advancedsettings.hxx"
#include "advancedsettings.hxx"
#include "advancedsettingsdlg.hxx"
#include "advancedsettingsdlg.hxx"
#include "moduledbu.hxx"
#include "moduledbu.hxx"
...
@@ -169,22 +173,22 @@ namespace dbaui
...
@@ -169,22 +173,22 @@ namespace dbaui
// for easier maintenance, write the table in this form, then copy it to m_aBooleanSettings
// for easier maintenance, write the table in this form, then copy it to m_aBooleanSettings
BooleanSettingDesc
aSettings
[]
=
{
BooleanSettingDesc
aSettings
[]
=
{
{
&
m_pIsSQL92Check
,
"usesql92"
,
DSID_SQL92CHECK
,
false
},
{
std
::
addressof
(
m_pIsSQL92Check
)
,
"usesql92"
,
DSID_SQL92CHECK
,
false
},
{
&
m_pAppendTableAlias
,
"append"
,
DSID_APPEND_TABLE_ALIAS
,
false
},
{
std
::
addressof
(
m_pAppendTableAlias
)
,
"append"
,
DSID_APPEND_TABLE_ALIAS
,
false
},
{
&
m_pAsBeforeCorrelationName
,
"useas"
,
DSID_AS_BEFORE_CORRNAME
,
false
},
{
std
::
addressof
(
m_pAsBeforeCorrelationName
)
,
"useas"
,
DSID_AS_BEFORE_CORRNAME
,
false
},
{
&
m_pEnableOuterJoin
,
"useoj"
,
DSID_ENABLEOUTERJOIN
,
false
},
{
std
::
addressof
(
m_pEnableOuterJoin
)
,
"useoj"
,
DSID_ENABLEOUTERJOIN
,
false
},
{
&
m_pIgnoreDriverPrivileges
,
"ignoreprivs"
,
DSID_IGNOREDRIVER_PRIV
,
false
},
{
std
::
addressof
(
m_pIgnoreDriverPrivileges
)
,
"ignoreprivs"
,
DSID_IGNOREDRIVER_PRIV
,
false
},
{
&
m_pParameterSubstitution
,
"replaceparams"
,
DSID_PARAMETERNAMESUBST
,
false
},
{
std
::
addressof
(
m_pParameterSubstitution
)
,
"replaceparams"
,
DSID_PARAMETERNAMESUBST
,
false
},
{
&
m_pSuppressVersionColumn
,
"displayver"
,
DSID_SUPPRESSVERSIONCL
,
true
},
{
std
::
addressof
(
m_pSuppressVersionColumn
)
,
"displayver"
,
DSID_SUPPRESSVERSIONCL
,
true
},
{
&
m_pCatalog
,
"usecatalogname"
,
DSID_CATALOG
,
false
},
{
std
::
addressof
(
m_pCatalog
)
,
"usecatalogname"
,
DSID_CATALOG
,
false
},
{
&
m_pSchema
,
"useschemaname"
,
DSID_SCHEMA
,
false
},
{
std
::
addressof
(
m_pSchema
)
,
"useschemaname"
,
DSID_SCHEMA
,
false
},
{
&
m_pIndexAppendix
,
"createindex"
,
DSID_INDEXAPPENDIX
,
false
},
{
std
::
addressof
(
m_pIndexAppendix
)
,
"createindex"
,
DSID_INDEXAPPENDIX
,
false
},
{
&
m_pDosLineEnds
,
"eol"
,
DSID_DOSLINEENDS
,
false
},
{
std
::
addressof
(
m_pDosLineEnds
)
,
"eol"
,
DSID_DOSLINEENDS
,
false
},
{
&
m_pCheckRequiredFields
,
"ignorecurrency"
,
DSID_CHECK_REQUIRED_FIELDS
,
false
},
{
std
::
addressof
(
m_pCheckRequiredFields
)
,
"ignorecurrency"
,
DSID_CHECK_REQUIRED_FIELDS
,
false
},
{
&
m_pIgnoreCurrency
,
"inputchecks"
,
DSID_IGNORECURRENCY
,
false
},
{
std
::
addressof
(
m_pIgnoreCurrency
)
,
"inputchecks"
,
DSID_IGNORECURRENCY
,
false
},
{
&
m_pEscapeDateTime
,
"useodbcliterals"
,
DSID_ESCAPE_DATETIME
,
false
},
{
std
::
addressof
(
m_pEscapeDateTime
)
,
"useodbcliterals"
,
DSID_ESCAPE_DATETIME
,
false
},
{
&
m_pPrimaryKeySupport
,
"primarykeys"
,
DSID_PRIMARY_KEY_SUPPORT
,
false
},
{
std
::
addressof
(
m_pPrimaryKeySupport
)
,
"primarykeys"
,
DSID_PRIMARY_KEY_SUPPORT
,
false
},
{
&
m_pRespectDriverResultSetType
,
"resulttype"
,
DSID_RESPECTRESULTSETTYPE
,
false
}
{
std
::
addressof
(
m_pRespectDriverResultSetType
)
,
"resulttype"
,
DSID_RESPECTRESULTSETTYPE
,
false
}
};
};
for
(
const
BooleanSettingDesc
&
pCopy
:
aSettings
)
for
(
const
BooleanSettingDesc
&
pCopy
:
aSettings
)
...
...
include/vcl/vclptr.hxx
Dosyayı görüntüle @
9549fb88
...
@@ -223,6 +223,14 @@ public:
...
@@ -223,6 +223,14 @@ public:
{
{
return
(
m_rInnerRef
>
handle
.
m_rInnerRef
);
return
(
m_rInnerRef
>
handle
.
m_rInnerRef
);
}
}
/** Deleted address-of operator.
To avoid confusion whether it returns the address of either the
pointed-to raw object (for which to use VclPtr::get instead) or the
wrapper itself (for which to use std::addressof instead).
*/
void
operator
&
()
=
delete
;
};
// class VclPtr
};
// class VclPtr
template
<
typename
T1
,
typename
T2
>
template
<
typename
T1
,
typename
T2
>
...
...
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