summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/control/FieldDescControl.cxx4
-rw-r--r--dbaccess/source/ui/misc/WCPage.cxx4
2 files changed, 3 insertions, 5 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx
index b9e20c788516..222cfe3808f9 100644
--- a/dbaccess/source/ui/control/FieldDescControl.cxx
+++ b/dbaccess/source/ui/control/FieldDescControl.cxx
@@ -496,7 +496,7 @@ void OFieldDescControl::ActivateAggregate( EControlType eType )
return;
m_nPos++;
{
- sal_Int32 nMax = EDIT_NOLIMIT;
+ sal_Int32 nMax(0);
OUString aTmpString;
try
{
@@ -516,7 +516,7 @@ void OFieldDescControl::ActivateAggregate( EControlType eType )
m_xColumnName = std::make_unique<OPropColumnEditCtrl>(
m_xBuilder->weld_entry("ColumnName"), aTmpString,
STR_HELP_DEFAULT_VALUE, FIELD_PROPERTY_COLUMNNAME);
- m_xColumnName->set_max_length(nMax ? nMax : EDIT_NOLIMIT);
+ m_xColumnName->set_max_length(nMax);
m_xColumnName->setCheck( isSQL92CheckEnabled(getConnection()) );
}
diff --git a/dbaccess/source/ui/misc/WCPage.cxx b/dbaccess/source/ui/misc/WCPage.cxx
index 4ab6480ca136..d5f30a2d08ed 100644
--- a/dbaccess/source/ui/misc/WCPage.cxx
+++ b/dbaccess/source/ui/misc/WCPage.cxx
@@ -63,8 +63,6 @@ OCopyTable::OCopyTable(weld::Container* pPage, OCopyTableWizard* pWizard)
, m_xFT_KeyName(m_xBuilder->weld_label("keynamelabel"))
, m_xEdKeyName(m_xBuilder->weld_entry("keyname"))
{
- m_xEdTableName->set_max_length(EDIT_NOLIMIT);
-
if ( m_pParent->m_xDestConnection.is() )
{
if (!m_pParent->supportsViews())
@@ -88,7 +86,7 @@ OCopyTable::OCopyTable(weld::Container* pPage, OCopyTableWizard* pWizard)
m_xEdKeyName->set_text(m_pParent->createUniqueName("ID"));
const sal_Int32 nMaxLen = m_pParent->getMaxColumnNameLength();
- m_xEdKeyName->set_max_length(nMaxLen ? nMaxLen : EDIT_NOLIMIT);
+ m_xEdKeyName->set_max_length(nMaxLen);
}
SetPageTitle(DBA_RES(STR_COPYTABLE_TITLE_COPY));