tdf#145614 Convert #define to constexpr
Change-Id: I156a1a231cab8277462eddbc044f4b3378f73448 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211386 Reviewed-by: Hossein <hossein@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
#include "ddectrl.hxx"
|
||||
#include <basic/sberrors.hxx>
|
||||
|
||||
#define DDE_FIRSTERR 0x4000
|
||||
#define DDE_LASTERR 0x4011
|
||||
constexpr tools::Long DDE_FIRSTERR = 0x4000;
|
||||
constexpr tools::Long DDE_LASTERR = 0x4011;
|
||||
|
||||
const ErrCode nDdeErrMap[] =
|
||||
{
|
||||
|
||||
@@ -62,12 +62,12 @@ const char cDataSourceName[] = "DataSource/DataSourceName";
|
||||
const char cDataTableName[] = "DataSource/DataTableName" ;
|
||||
const char cDataCommandType[] = "DataSource/DataCommandType";
|
||||
|
||||
#define SECURE_PORT 587
|
||||
#define DEFAULT_PORT 25
|
||||
#define POP_PORT 110
|
||||
#define POP_SECURE_PORT 995
|
||||
#define IMAP_PORT 143
|
||||
#define IMAP_SECURE_PORT 993
|
||||
constexpr sal_Int16 SECURE_PORT = 587;
|
||||
constexpr sal_Int16 DEFAULT_PORT = 25;
|
||||
constexpr sal_Int16 POP_PORT = 110;
|
||||
constexpr sal_Int16 POP_SECURE_PORT = 995;
|
||||
constexpr sal_Int16 IMAP_PORT = 143;
|
||||
constexpr sal_Int16 IMAP_SECURE_PORT = 993;
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user