summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/relationdesign/RTableConnection.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-21 15:58:43 +0200
committerNoel Grandin <noel@peralex.com>2016-09-22 09:25:49 +0200
commit37acd3c0ca1b57834e02ea71b996cdd50743572c (patch)
treedae0a2a5e202c9052556f3cbb123bf64bce85f4b /dbaccess/source/ui/relationdesign/RTableConnection.cxx
parent394b8e396541d5620714204118a6fcda7465270b (diff)
convert CARDINALITY constants to scoped enum
Change-Id: I35cc98086850e62a2ea8703fc4b086ed2adff66a
Diffstat (limited to 'dbaccess/source/ui/relationdesign/RTableConnection.cxx')
-rw-r--r--dbaccess/source/ui/relationdesign/RTableConnection.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/dbaccess/source/ui/relationdesign/RTableConnection.cxx b/dbaccess/source/ui/relationdesign/RTableConnection.cxx
index 35d9798f17f5..61834237b388 100644
--- a/dbaccess/source/ui/relationdesign/RTableConnection.cxx
+++ b/dbaccess/source/ui/relationdesign/RTableConnection.cxx
@@ -52,7 +52,7 @@ void ORelationTableConnection::Draw(vcl::RenderContext& rRenderContext, const Re
{
OTableConnection::Draw(rRenderContext, rRect);
ORelationTableConnectionData* pData = static_cast< ORelationTableConnectionData* >(GetData().get());
- if (pData && (pData->GetCardinality() == CARDINAL_UNDEFINED))
+ if (pData && (pData->GetCardinality() == Cardinality::Undefined))
return;
// search lines for top line
@@ -91,20 +91,21 @@ void ORelationTableConnection::Draw(vcl::RenderContext& rRenderContext, const Re
switch (pData->GetCardinality())
{
- case CARDINAL_ONE_MANY:
+ case Cardinality::OneMany:
aSourceText = "1";
aDestText = "n";
break;
- case CARDINAL_MANY_ONE:
+ case Cardinality::ManyOne:
aSourceText = "n";
aDestText = "1";
break;
- case CARDINAL_ONE_ONE:
+ case Cardinality::OneOne:
aSourceText = "1";
aDestText = "1";
break;
+ default: break;
}
if (IsSelected())