summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-24 09:07:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-25 08:06:07 +0100
commit880af0672c6362b0dbdae137d92e8ebf85a7b335 (patch)
treea64999716b9ebeed2c483bef3fa057eff45e2727
parentd434bd5493443cd9af2e35fa540f931c1b3aa2bf (diff)
loplugin:unusedfields in dbaccess
Change-Id: I858fd3d0bbd91b0ee7e02969b26d80e262c63b7d Reviewed-on: https://gerrit.libreoffice.org/68279 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--dbaccess/source/core/api/RowSet.cxx1
-rw-r--r--dbaccess/source/core/api/RowSetBase.cxx4
-rw-r--r--dbaccess/source/core/api/RowSetCacheIterator.cxx5
-rw-r--r--dbaccess/source/core/api/RowSetCacheIterator.hxx3
-rw-r--r--dbaccess/source/core/misc/dsntypes.cxx1
-rw-r--r--dbaccess/source/inc/dsntypes.hxx1
-rw-r--r--dbaccess/source/ui/app/AppIconControl.cxx1
-rw-r--r--dbaccess/source/ui/app/AppIconControl.hxx1
-rw-r--r--dbaccess/source/ui/browser/dbloader.cxx4
-rw-r--r--dbaccess/source/ui/dlg/RelationDlg.cxx2
-rw-r--r--dbaccess/source/ui/dlg/dbwizsetup.cxx6
-rw-r--r--dbaccess/source/ui/dlg/generalpage.cxx16
-rw-r--r--dbaccess/source/ui/dlg/generalpage.hxx10
-rw-r--r--dbaccess/source/ui/inc/DExport.hxx1
-rw-r--r--dbaccess/source/ui/inc/FieldDescriptions.hxx1
-rw-r--r--dbaccess/source/ui/inc/RelationDlg.hxx1
-rw-r--r--dbaccess/source/ui/inc/TokenWriter.hxx1
-rw-r--r--dbaccess/source/ui/inc/TypeInfo.hxx2
-rw-r--r--dbaccess/source/ui/misc/DExport.cxx7
-rw-r--r--dbaccess/source/ui/misc/HtmlReader.cxx3
-rw-r--r--dbaccess/source/ui/misc/TokenWriter.cxx17
-rw-r--r--dbaccess/source/ui/misc/UITools.cxx6
-rw-r--r--dbaccess/source/ui/tabledesign/FieldDescriptions.cxx5
23 files changed, 15 insertions, 84 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx
index 6da73ff09fd3..671f9d3abeea 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -1067,7 +1067,6 @@ void ORowSet::implCancelRowUpdates( bool _bNotifyModified )
m_aBookmark = m_pCache->getBookmark();
m_aCurrentRow = m_pCache->m_aMatrixIter;
m_bIsInsertRow = false;
- m_aCurrentRow.setBookmark(m_aBookmark);
// notification order
// IsModified
diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx
index 94c7e9e7dd37..c203056815cd 100644
--- a/dbaccess/source/core/api/RowSetBase.cxx
+++ b/dbaccess/source/core/api/RowSetBase.cxx
@@ -1028,7 +1028,6 @@ void ORowSetBase::setCurrentRow( bool _bMoved, bool _bDoNotify, const ORowSetRow
m_aCurrentRow = m_pCache->m_aMatrixIter;
m_bIsInsertRow = false;
OSL_ENSURE(!m_aCurrentRow.isNull(),"CurrentRow is null!");
- m_aCurrentRow.setBookmark(m_aBookmark);
OSL_ENSURE(!m_aCurrentRow.isNull() && m_aCurrentRow != m_pCache->getEnd(),"Position of matrix iterator isn't valid!");
OSL_ENSURE(m_aCurrentRow->is(),"Currentrow isn't valid");
OSL_ENSURE(m_aBookmark.hasValue(),"Bookmark has no value!");
@@ -1052,7 +1051,6 @@ void ORowSetBase::setCurrentRow( bool _bMoved, bool _bDoNotify, const ORowSetRow
m_aOldRow->clearRow();
m_aCurrentRow = m_pCache->getEnd();
m_aBookmark = Any();
- m_aCurrentRow.setBookmark(m_aBookmark);
}
// TODO: can this be done before the notifications?
@@ -1290,7 +1288,6 @@ void ORowSetBase::movementFailed()
m_bBeforeFirst = m_pCache->isBeforeFirst();
m_bAfterLast = m_pCache->isAfterLast();
m_aBookmark = Any();
- m_aCurrentRow.setBookmark(m_aBookmark);
OSL_ENSURE(m_bBeforeFirst || m_bAfterLast,"BeforeFirst or AfterLast is wrong!");
SAL_INFO("dbaccess", "ORowSetBase::movementFailed() Clone = " << m_bClone);
}
@@ -1342,7 +1339,6 @@ void ORowSetBase::onDeletedRow( const Any& _rBookmark, sal_Int32 _nPos )
m_aOldRow->clearRow();
m_aCurrentRow = m_pCache->getEnd();
m_aBookmark = Any();
- m_aCurrentRow.setBookmark( m_aBookmark );
}
}
diff --git a/dbaccess/source/core/api/RowSetCacheIterator.cxx b/dbaccess/source/core/api/RowSetCacheIterator.cxx
index 9fbbc3209f41..7df7bae6b9f5 100644
--- a/dbaccess/source/core/api/RowSetCacheIterator.cxx
+++ b/dbaccess/source/core/api/RowSetCacheIterator.cxx
@@ -73,11 +73,6 @@ bool ORowSetCacheIterator::operator !=(const ORowSetMatrix::iterator& _rRH) cons
return m_aIter->second.aIterator != _rRH;
}
-void ORowSetCacheIterator::setBookmark(const css::uno::Any& _rBookmark)
-{
- m_aIter->second.aBookmark = _rBookmark;
-}
-
bool ORowSetCacheIterator::isNull() const
{
bool bRet = !m_pCache || !m_pRowSet || m_aIter == m_pCache->m_aCacheIterators.end();
diff --git a/dbaccess/source/core/api/RowSetCacheIterator.hxx b/dbaccess/source/core/api/RowSetCacheIterator.hxx
index 6e844e29422f..432f0e48663a 100644
--- a/dbaccess/source/core/api/RowSetCacheIterator.hxx
+++ b/dbaccess/source/core/api/RowSetCacheIterator.hxx
@@ -31,7 +31,6 @@ namespace dbaccess
typedef struct
{
ORowSetMatrix::iterator aIterator;
- css::uno::Any aBookmark;
ORowSetBase* pRowSet;
} ORowSetCacheIterator_Helper;
@@ -67,8 +66,6 @@ namespace dbaccess
bool operator <(const ORowSetMatrix::iterator& _rRH) const;
bool operator !=(const ORowSetMatrix::iterator& _rRH) const;
- void setBookmark(const css::uno::Any& _rBookmark);
-
const ORowSetCacheMap::iterator& getIter() const { return m_aIter; }
};
}
diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx
index ee394325d74c..05e64ba5a001 100644
--- a/dbaccess/source/core/misc/dsntypes.cxx
+++ b/dbaccess/source/core/misc/dsntypes.cxx
@@ -49,7 +49,6 @@ namespace dbaccess
// ODsnTypeCollection
ODsnTypeCollection::ODsnTypeCollection(const css::uno::Reference< css::uno::XComponentContext >& _xContext)
:m_aDriverConfig(_xContext)
-,m_xContext(_xContext)
#if OSL_DEBUG_LEVEL > 0
,m_nLivingIterators(0)
#endif
diff --git a/dbaccess/source/inc/dsntypes.hxx b/dbaccess/source/inc/dsntypes.hxx
index 8ce435285bfe..f15c64410290 100644
--- a/dbaccess/source/inc/dsntypes.hxx
+++ b/dbaccess/source/inc/dsntypes.hxx
@@ -104,7 +104,6 @@ class OOO_DLLPUBLIC_DBA ODsnTypeCollection final
std::vector<OUString> m_aDsnTypesDisplayNames; /// user readable names for the datasource types
std::vector<OUString> m_aDsnPrefixes; /// DSN prefixes which determine the type of a datasource
::connectivity::DriversConfig m_aDriverConfig;
- css::uno::Reference< css::uno::XComponentContext > m_xContext;
#if OSL_DEBUG_LEVEL > 0
sal_Int32 m_nLivingIterators; /// just for debugging reasons, counts the living iterators
diff --git a/dbaccess/source/ui/app/AppIconControl.cxx b/dbaccess/source/ui/app/AppIconControl.cxx
index 1097094d822e..6352c7b8ad61 100644
--- a/dbaccess/source/ui/app/AppIconControl.cxx
+++ b/dbaccess/source/ui/app/AppIconControl.cxx
@@ -91,7 +91,6 @@ sal_Int8 OApplicationIconControl::AcceptDrop( const AcceptDropEvent& _rEvt )
{
SetCursor(pEntry);
nDropOption = m_pActionListener->queryDrop( _rEvt, GetDataFlavorExVector() );
- m_aMousePos = _rEvt.maPosPixel;
}
}
diff --git a/dbaccess/source/ui/app/AppIconControl.hxx b/dbaccess/source/ui/app/AppIconControl.hxx
index af3352e5ce29..12a03144b18e 100644
--- a/dbaccess/source/ui/app/AppIconControl.hxx
+++ b/dbaccess/source/ui/app/AppIconControl.hxx
@@ -28,7 +28,6 @@ namespace dbaui
class OApplicationIconControl :public SvtIconChoiceCtrl
,public DropTargetHelper
{
- Point m_aMousePos;
IControlActionListener* m_pActionListener;
public:
diff --git a/dbaccess/source/ui/browser/dbloader.cxx b/dbaccess/source/ui/browser/dbloader.cxx
index 8772bc983731..9d989c358553 100644
--- a/dbaccess/source/ui/browser/dbloader.cxx
+++ b/dbaccess/source/ui/browser/dbloader.cxx
@@ -65,10 +65,8 @@ using namespace dbaui;
class DBContentLoader : public ::cppu::WeakImplHelper< XFrameLoader, XServiceInfo>
{
private:
- OUString m_aURL;
Sequence< PropertyValue> m_aArgs;
Reference< XLoadEventListener > m_xListener;
- Reference< XFrame > m_xFrame;
Reference< XComponentContext > m_xContext;
public:
explicit DBContentLoader(const Reference< XComponentContext >&);
@@ -142,9 +140,7 @@ void SAL_CALL DBContentLoader::load(const Reference< XFrame > & rFrame, const OU
const Sequence< PropertyValue >& rArgs,
const Reference< XLoadEventListener > & rListener)
{
- m_xFrame = rFrame;
m_xListener = rListener;
- m_aURL = rURL;
m_aArgs = rArgs;
static const struct ServiceNameToImplName
diff --git a/dbaccess/source/ui/dlg/RelationDlg.cxx b/dbaccess/source/ui/dlg/RelationDlg.cxx
index 873028b4ec81..99dc63bbdb96 100644
--- a/dbaccess/source/ui/dlg/RelationDlg.cxx
+++ b/dbaccess/source/ui/dlg/RelationDlg.cxx
@@ -63,8 +63,6 @@ ORelationDialog::ORelationDialog( OJoinTableView* pParent,
get(m_pRB_CascDelDefault, "deldefault");
get(m_pPB_OK, "ok");
- m_xConnection = pParent->getDesignView()->getController().getConnection();
-
// Copy connection
m_pConnData.reset( static_cast<ORelationTableConnectionData*>(pConnectionData->NewInstance()) );
m_pConnData->CopyFrom( *pConnectionData );
diff --git a/dbaccess/source/ui/dlg/dbwizsetup.cxx b/dbaccess/source/ui/dlg/dbwizsetup.cxx
index 17565955523b..5076997c30ed 100644
--- a/dbaccess/source/ui/dlg/dbwizsetup.cxx
+++ b/dbaccess/source/ui/dlg/dbwizsetup.cxx
@@ -338,7 +338,7 @@ void ODbTypeWizDialogSetup::activateDatabasePath()
case OGeneralPageWizard::eOpenExisting:
{
activatePath( static_cast<PathId>(m_pCollection->size() + 1), true );
- enableButtons( WizardButtonFlags::FINISH, !m_pGeneralPage->GetSelectedDocument().sURL.isEmpty() );
+ enableButtons( WizardButtonFlags::FINISH, !m_pGeneralPage->GetSelectedDocumentURL().isEmpty() );
}
break;
default:
@@ -594,7 +594,7 @@ IMPL_LINK_NOARG(ODbTypeWizDialogSetup, OnChangeCreationMode, OGeneralPageWizard&
IMPL_LINK_NOARG(ODbTypeWizDialogSetup, OnRecentDocumentSelected, OGeneralPageWizard&, void)
{
- enableButtons( WizardButtonFlags::FINISH, !m_pGeneralPage->GetSelectedDocument().sURL.isEmpty() );
+ enableButtons( WizardButtonFlags::FINISH, !m_pGeneralPage->GetSelectedDocumentURL().isEmpty() );
}
IMPL_LINK_NOARG(ODbTypeWizDialogSetup, OnSingleDocumentChosen, OGeneralPageWizard&, void)
@@ -974,7 +974,7 @@ bool ODbTypeWizDialogSetup::SaveDatabaseDocument()
try
{
- AsyncLoader* pAsyncLoader = new AsyncLoader( getORB(), m_pGeneralPage->GetSelectedDocument().sURL );
+ AsyncLoader* pAsyncLoader = new AsyncLoader( getORB(), m_pGeneralPage->GetSelectedDocumentURL() );
::rtl::Reference< AsyncLoader > xKeepAlive( pAsyncLoader );
pAsyncLoader->doLoadAsync();
}
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx
index 567b1a2d65ae..c66241ce22e3 100644
--- a/dbaccess/source/ui/dlg/generalpage.cxx
+++ b/dbaccess/source/ui/dlg/generalpage.cxx
@@ -651,17 +651,12 @@ namespace dbaui
return bChangedSomething;
}
- OGeneralPageWizard::DocumentDescriptor OGeneralPageWizard::GetSelectedDocument() const
+ OUString OGeneralPageWizard::GetSelectedDocumentURL() const
{
- DocumentDescriptor aDocument;
- if ( !m_aBrowsedDocument.sURL.isEmpty() )
- aDocument = m_aBrowsedDocument;
+ if ( !m_aBrowsedDocumentURL.isEmpty() )
+ return m_aBrowsedDocumentURL;
else
- {
- aDocument.sURL = m_pLB_DocumentList->GetSelectedDocumentURL();
- aDocument.sFilter = m_pLB_DocumentList->GetSelectedDocumentFilter();
- }
- return aDocument;
+ return m_pLB_DocumentList->GetSelectedDocumentURL();
}
IMPL_LINK_NOARG( OGeneralPageWizard, OnCreateDatabaseModeSelected, Button*, void )
@@ -728,8 +723,7 @@ namespace dbaui
OnSetupModeSelected( m_pRB_ConnectDatabase );
return;
}
- m_aBrowsedDocument.sURL = sPath;
- m_aBrowsedDocument.sFilter.clear();
+ m_aBrowsedDocumentURL = sPath;
m_aChooseDocumentHandler.Call( *this );
}
}
diff --git a/dbaccess/source/ui/dlg/generalpage.hxx b/dbaccess/source/ui/dlg/generalpage.hxx
index eb4ec41af21a..a4a2dc3f870e 100644
--- a/dbaccess/source/ui/dlg/generalpage.hxx
+++ b/dbaccess/source/ui/dlg/generalpage.hxx
@@ -129,12 +129,6 @@ namespace dbaui
eOpenExisting
};
- struct DocumentDescriptor
- {
- OUString sURL;
- OUString sFilter;
- };
-
private:
// dialog controls
VclPtr<RadioButton> m_pRB_CreateDatabase;
@@ -149,7 +143,7 @@ namespace dbaui
VclPtr<OpenDocumentButton> m_pPB_OpenDatabase;
// state
- DocumentDescriptor m_aBrowsedDocument;
+ OUString m_aBrowsedDocumentURL;
CreationMode m_eOriginalCreationMode;
Link<OGeneralPageWizard&,void> m_aCreationModeHandler; /// to be called if a new type is selected
@@ -165,7 +159,7 @@ namespace dbaui
void SetDocumentSelectionHandler( const Link<OGeneralPageWizard&,void>& _rHandler) { m_aDocumentSelectionHandler = _rHandler; }
void SetChooseDocumentHandler( const Link<OGeneralPageWizard&,void>& _rHandler) { m_aChooseDocumentHandler = _rHandler; }
- DocumentDescriptor GetSelectedDocument() const;
+ OUString GetSelectedDocumentURL() const;
private:
virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override;
diff --git a/dbaccess/source/ui/inc/DExport.hxx b/dbaccess/source/ui/inc/DExport.hxx
index 580a46577d79..397b527d6d7d 100644
--- a/dbaccess/source/ui/inc/DExport.hxx
+++ b/dbaccess/source/ui/inc/DExport.hxx
@@ -89,7 +89,6 @@ namespace dbaui
OUString m_sTextToken; ///< cell content
OUString m_sNumToken; ///< SDNUM value
- OUString m_sValToken; ///< SDVAL value
TOTypeInfoSP m_pTypeInfo; ///< contains the default type
const TColumnVector* m_pColumnList;
const OTypeInfoMap* m_pInfoMap;
diff --git a/dbaccess/source/ui/inc/FieldDescriptions.hxx b/dbaccess/source/ui/inc/FieldDescriptions.hxx
index f4cd5cee3b62..d485b60d4cd8 100644
--- a/dbaccess/source/ui/inc/FieldDescriptions.hxx
+++ b/dbaccess/source/ui/inc/FieldDescriptions.hxx
@@ -31,7 +31,6 @@ namespace dbaui
class OFieldDescription
{
private:
- css::uno::Any m_aDefaultValue; // the default value from the database
css::uno::Any m_aControlDefault; // the value which the control inserts as default
css::uno::Any m_aWidth; // sal_Int32 or void
css::uno::Any m_aRelativePosition; // sal_Int32 or void
diff --git a/dbaccess/source/ui/inc/RelationDlg.hxx b/dbaccess/source/ui/inc/RelationDlg.hxx
index 4bd536dd6fed..72c91215dca4 100644
--- a/dbaccess/source/ui/inc/RelationDlg.hxx
+++ b/dbaccess/source/ui/inc/RelationDlg.hxx
@@ -48,7 +48,6 @@ namespace dbaui
TTableConnectionData::value_type m_pConnData;
TTableConnectionData::value_type m_pOrigConnData;
- css::uno::Reference< css::sdbc::XConnection > m_xConnection;
bool m_bTriedOneUpdate;
diff --git a/dbaccess/source/ui/inc/TokenWriter.hxx b/dbaccess/source/ui/inc/TokenWriter.hxx
index 8b98120d0cef..9af27758e61b 100644
--- a/dbaccess/source/ui/inc/TokenWriter.hxx
+++ b/dbaccess/source/ui/inc/TokenWriter.hxx
@@ -50,7 +50,6 @@ namespace dbaui
class ODatabaseImportExport : public ::cppu::WeakImplHelper< css::lang::XEventListener>
{
protected:
- css::lang::Locale m_aLocale;
css::uno::Sequence< css::uno::Any> m_aSelection;
bool m_bBookmarkSelection;
SvStream* m_pStream;
diff --git a/dbaccess/source/ui/inc/TypeInfo.hxx b/dbaccess/source/ui/inc/TypeInfo.hxx
index a7dc3f75091c..4304bfd82c16 100644
--- a/dbaccess/source/ui/inc/TypeInfo.hxx
+++ b/dbaccess/source/ui/inc/TypeInfo.hxx
@@ -67,8 +67,6 @@ const sal_uInt16 TYPE_BIT = 31;
public:
OUString aUIName; // the name which is the user see (a combination of resource text and aTypeName)
OUString aTypeName; // name of type in database
- OUString aLiteralPrefix; // prefix for quoting
- OUString aLiteralSuffix; // suffix for quoting
OUString aCreateParams; // parameter for creation
OUString aLocalTypeName;
diff --git a/dbaccess/source/ui/misc/DExport.cxx b/dbaccess/source/ui/misc/DExport.cxx
index f070b730f9ab..1d34c41f0ddb 100644
--- a/dbaccess/source/ui/misc/DExport.cxx
+++ b/dbaccess/source/ui/misc/DExport.cxx
@@ -221,11 +221,9 @@ ODatabaseExport::ODatabaseExport(const SharedConnection& _rxConnection,
aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow);
m_pTypeInfo->nPrecision = aValue;
++nPos;
- aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow);
- m_pTypeInfo->aLiteralPrefix = aValue;
+ aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow); //LiteralPrefix
++nPos;
- aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow);
- m_pTypeInfo->aLiteralSuffix = aValue;
+ aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow); //LiteralSuffix
++nPos;
aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow);
m_pTypeInfo->aCreateParams = aValue;
@@ -781,7 +779,6 @@ void ODatabaseExport::eraseTokens()
{
m_sTextToken.clear();
m_sNumToken.clear();
- m_sValToken.clear();
}
void ODatabaseExport::ensureFormatter()
diff --git a/dbaccess/source/ui/misc/HtmlReader.cxx b/dbaccess/source/ui/misc/HtmlReader.cxx
index 709556dbbe1d..3dc3c38b558b 100644
--- a/dbaccess/source/ui/misc/HtmlReader.cxx
+++ b/dbaccess/source/ui/misc/HtmlReader.cxx
@@ -286,9 +286,6 @@ void OHTMLReader::fetchOptions()
{
switch( rOption.GetToken() )
{
- case HtmlOptionId::SDVAL:
- m_sValToken = rOption.GetString();
- break;
case HtmlOptionId::SDNUM:
m_sNumToken = rOption.GetString();
break;
diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx
index 28a316ac7621..a30614e5b82f 100644
--- a/dbaccess/source/ui/misc/TokenWriter.cxx
+++ b/dbaccess/source/ui/misc/TokenWriter.cxx
@@ -108,14 +108,6 @@ ODatabaseImportExport::ODatabaseImportExport( const ::dbtools::SharedConnection&
,m_bCheckOnly(false)
{
m_eDestEnc = osl_getThreadTextEncoding();
- try
- {
- SvtSysLocale aSysLocale;
- m_aLocale = aSysLocale.GetLanguageTag().getLocale();
- }
- catch(Exception&)
- {
- }
}
ODatabaseImportExport::~ODatabaseImportExport()
@@ -211,15 +203,6 @@ void ODatabaseImportExport::impl_initFromDescriptor( const ODataAccessDescriptor
}
else
initialize();
-
- try
- {
- SvtSysLocale aSysLocale;
- m_aLocale = aSysLocale.GetLanguageTag().getLocale();
- }
- catch(Exception&)
- {
- }
}
void ODatabaseImportExport::initialize()
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx
index af8ec154deb9..9f7b94ca488c 100644
--- a/dbaccess/source/ui/misc/UITools.cxx
+++ b/dbaccess/source/ui/misc/UITools.cxx
@@ -460,11 +460,9 @@ void fillTypeInfo( const Reference< css::sdbc::XConnection>& _rxConnection,
aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow);
pInfo->nPrecision = aValue;
++nPos;
- aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow);
- pInfo->aLiteralPrefix = aValue;
+ aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow); // LiteralPrefix
++nPos;
- aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow);
- pInfo->aLiteralSuffix = aValue;
+ aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow); //LiteralSuffix
++nPos;
aValue.fill(nPos,aTypes[nPos],aNullable[nPos],xRow);
pInfo->aCreateParams = aValue;
diff --git a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
index dda37a3192c3..86499d13f15a 100644
--- a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
+++ b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
@@ -56,8 +56,7 @@ OFieldDescription::OFieldDescription()
}
OFieldDescription::OFieldDescription( const OFieldDescription& rDescr )
- :m_aDefaultValue(rDescr.m_aDefaultValue)
- ,m_aControlDefault(rDescr.m_aControlDefault)
+ :m_aControlDefault(rDescr.m_aControlDefault)
,m_aWidth(rDescr.m_aWidth)
,m_aRelativePosition(rDescr.m_aRelativePosition)
,m_pType(rDescr.m_pType)
@@ -287,8 +286,6 @@ void OFieldDescription::SetDefaultValue(const Any& _rDefaultValue)
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_DEFAULTVALUE) )
m_xDest->setPropertyValue(PROPERTY_DEFAULTVALUE, _rDefaultValue);
- else
- m_aDefaultValue = _rDefaultValue;
}
catch( const Exception& )
{