diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-02-03 13:06:21 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-02-03 13:27:04 +0000 |
commit | ad66f2727ff3ab21468edc6866bb3e1cc8e5efbb (patch) | |
tree | c82cd1efc7ca3df364b870c65d15f1364dc97d03 /sw/source/ui | |
parent | afd743141f7a7dd05914d0872c9afe079f16fe0c (diff) |
Use offapi constants instead of hardcoded magic constant
Change-Id: I53b86e3baebbcca7cb0a72aa072db3da0f84fd4f
Reviewed-on: https://gerrit.libreoffice.org/14303
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/fldui/changedb.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx index 2299b4df0f77..d5a171d3b0af 100644 --- a/sw/source/ui/fldui/changedb.cxx +++ b/sw/source/ui/fldui/changedb.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/sdb/DatabaseContext.hpp> +#include <com/sun/star/sdb/CommandType.hpp> #include <com/sun/star/sdb/XDatabaseAccess.hpp> #include <comphelper/processfactory.hxx> #include <sfx2/viewfrm.hxx> @@ -197,7 +198,9 @@ void SwChangeDBDlg::UpdateFlds() + OUString(DB_DELIM) + sTableName + OUString(DB_DELIM) - + OUString(static_cast<sal_Unicode>(bIsTable ? '0' : '1')); + + OUString::number(bIsTable + ? CommandType::TABLE + : CommandType::QUERY); pSh->ChangeDBFields( aDBNames, sTemp); pSh->EndAllAction(); } |