summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/textbodypropertiescontext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-21 12:43:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-22 10:28:41 +0200
commit813939f8e392feff0b6eeeee1bae023bc9c98849 (patch)
treee130cecae68e9b2774a88755989bf4ece2e7a756 /oox/source/drawingml/textbodypropertiescontext.cxx
parent3ff9582704a024b4a89da9a63322e117157b5857 (diff)
rename oox::OptValue::get(Type) to value_or
as a step towards replacing OptValue with std::optional Change-Id: Ic4afaca87034b1b794432ee4261a6495058b26fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136268 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/drawingml/textbodypropertiescontext.cxx')
-rw-r--r--oox/source/drawingml/textbodypropertiescontext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx
index 6f771eeee9ff..a2a0d365b0c2 100644
--- a/oox/source/drawingml/textbodypropertiescontext.cxx
+++ b/oox/source/drawingml/textbodypropertiescontext.cxx
@@ -116,7 +116,7 @@ TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler2Helper cons
// ST_TextVerticalType
if( rAttribs.hasAttribute( XML_vert ) ) {
mrTextBodyProp.moVert = rAttribs.getToken( XML_vert );
- sal_Int32 tVert = mrTextBodyProp.moVert.get( XML_horz );
+ sal_Int32 tVert = mrTextBodyProp.moVert.value_or( XML_horz );
if (tVert == XML_vert || tVert == XML_eaVert || tVert == XML_mongolianVert)
mrTextBodyProp.moRotation = 5400000;
else if (tVert == XML_vert270)
@@ -175,7 +175,7 @@ ContextHandlerRef TextBodyPropertiesContext::onCreateContext( sal_Int32 aElement
}
case A_TOKEN( spAutoFit ):
{
- const sal_Int32 tVert = mrTextBodyProp.moVert.get( XML_horz );
+ const sal_Int32 tVert = mrTextBodyProp.moVert.value_or( XML_horz );
if( tVert != XML_vert && tVert != XML_eaVert && tVert != XML_vert270 && tVert != XML_mongolianVert )
mrTextBodyProp.maPropertyMap.setProperty( PROP_TextAutoGrowHeight, true);
}