summaryrefslogtreecommitdiff
path: root/include/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-21 13:02:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-22 11:48:28 +0200
commit0feeb94f97332a8e803e1936d66e0f234bd51973 (patch)
tree9fa7eca333fda4cde233f9db7ea3840e81b7bcb8 /include/oox
parent813939f8e392feff0b6eeeee1bae023bc9c98849 (diff)
rename oox::OptValue::get to value
as a step in replacing OptValue with std::optional Change-Id: Ia5d05c28a88beaced11ae1d0414de66106cc9e20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136269 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/oox')
-rw-r--r--include/oox/helper/helper.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/oox/helper/helper.hxx b/include/oox/helper/helper.hxx
index 0c8aa2e6c358..9d5b7c3e2549 100644
--- a/include/oox/helper/helper.hxx
+++ b/include/oox/helper/helper.hxx
@@ -180,7 +180,7 @@ public:
bool has_value() const { return mbHasValue; }
bool operator!() const { return !mbHasValue; }
- const Type& get() const { return maValue; }
+ const Type& value() const { return maValue; }
const Type& value_or( const Type& rDefValue ) const { return mbHasValue ? maValue : rDefValue; }
Type& operator*() { assert(mbHasValue); return maValue; }
@@ -201,7 +201,7 @@ template< typename Type >
void assignIfUsed( OptValue<Type>& rDestValue, const OptValue<Type>& rSourceValue )
{
if( rSourceValue.has_value() )
- rDestValue = rSourceValue.get();
+ rDestValue = rSourceValue.value();
}