diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-21 11:00:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-21 11:58:40 +0200 |
commit | d8487667e65184aa58520aa907fa747a73a08e34 (patch) | |
tree | 8420d263854ebe3a28f56356cd9721386086b651 /oox/source/helper | |
parent | 966d9757de471f2a5ea1ffa87cef019dcf1e0cb3 (diff) |
rename oox::OptValue::has() to has_value
as a step towards converting it to std::optional
Change-Id: I9b2201c29827fcddae3b46480065c90b2907e6cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136210
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/helper')
-rw-r--r-- | oox/source/helper/attributelist.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/helper/attributelist.cxx b/oox/source/helper/attributelist.cxx index e0bea17c22e6..25cb1ac5354f 100644 --- a/oox/source/helper/attributelist.cxx +++ b/oox/source/helper/attributelist.cxx @@ -243,7 +243,7 @@ OptValue< bool > AttributeList::getBool( sal_Int32 nAttrToken ) const case XML_off: return OptValue< bool >( false ); } OptValue< sal_Int32 > onValue = getInteger( nAttrToken ); - return OptValue< bool >( onValue.has(), onValue.get() != 0 ); + return OptValue< bool >( onValue.has_value(), onValue.get() != 0 ); } OptValue< util::DateTime > AttributeList::getDateTime( sal_Int32 nAttrToken ) const |