summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-29 20:49:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-30 16:40:56 +0200
commit8689bd5490b473a7ffb149bbe5f7f0683f679c72 (patch)
tree896991b9de6e8aa9e00149b8ff7c12873cd73d48 /vcl/qa
parentd4d8fb12e81152ad75d1ab4cabfa300aa982e589 (diff)
convert TextAlign to scoped enum
Change-Id: Id2c466eacb44f0ea6adba75a0ac0be8be8e7ed4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119682 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/font.cxx6
-rw-r--r--vcl/qa/cppunit/svm/svmtest.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/qa/cppunit/font.cxx b/vcl/qa/cppunit/font.cxx
index e99bf12a5124..7eca6f1c0c5d 100644
--- a/vcl/qa/cppunit/font.cxx
+++ b/vcl/qa/cppunit/font.cxx
@@ -86,10 +86,10 @@ void VclFontTest::testAlignment()
{
vcl::Font aFont;
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Text alignment should be ALIGN_TOP", TextAlign::ALIGN_TOP, aFont.GetAlignment());
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "Text alignment should be TextAlign::Top", TextAlign::Top, aFont.GetAlignment());
- aFont.SetAlignment(TextAlign::ALIGN_BASELINE);
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Text alignment should be ALIGN_BASELINE", TextAlign::ALIGN_BASELINE, aFont.GetAlignment());
+ aFont.SetAlignment(TextAlign::Baseline);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "Text alignment should be TextAlign::Baseline", TextAlign::Baseline, aFont.GetAlignment());
}
diff --git a/vcl/qa/cppunit/svm/svmtest.cxx b/vcl/qa/cppunit/svm/svmtest.cxx
index 7a1f4b8f0dba..5f9a4bced6a4 100644
--- a/vcl/qa/cppunit/svm/svmtest.cxx
+++ b/vcl/qa/cppunit/svm/svmtest.cxx
@@ -1836,7 +1836,7 @@ void SvmTest::testTextAlign()
ScopedVclPtrInstance<VirtualDevice> pVirtualDev;
setupBaseVirtualDevice(*pVirtualDev, aGDIMetaFile);
- pVirtualDev->SetTextAlign(TextAlign::ALIGN_BOTTOM);
+ pVirtualDev->SetTextAlign(TextAlign::Bottom);
checkTextAlign(writeAndReadStream(aGDIMetaFile));
checkTextAlign(readFile(u"textalign.svm"));