@@ -21,7 +21,7 @@ This license can be found at:
2121#include < oleacc.h>
2222#include < common/xml.h>
2323#include < common/log.h>
24- #include < boost/ optional.hpp >
24+ #include < optional>
2525#include " nvdaHelperRemote.h"
2626#include " nvdaInProcUtils.h"
2727#include " nvdaInProcUtils.h"
@@ -751,7 +751,7 @@ inline bool generateFootnoteEndnoteXML(IDispatch* pDispatchRange, wostringstream
751751 return true ;
752752}
753753
754- std::experimental:: optional<int > getSectionBreakType (IDispatchPtr pDispatchRange ) {
754+ std::optional<int > getSectionBreakType (IDispatchPtr pDispatchRange ) {
755755 // The following case should handle where we have the page break character ('0x0c') shown with '|p|'
756756 // first section|p|
757757 // second section.
@@ -817,7 +817,7 @@ std::experimental::optional<int> getSectionBreakType(IDispatchPtr pDispatchRange
817817 return type;
818818}
819819
820- std::experimental:: optional<float >
820+ std::optional<float >
821821getStartOfRangeDistanceFromEdgeOfDocument (IDispatchPtr pDispatchRange) {
822822 float rangePos = -1 .0f ;
823823 auto res = _com_dispatch_raw_method ( pDispatchRange, wdDISPID_RANGE_INFORMATION,
@@ -831,7 +831,7 @@ getStartOfRangeDistanceFromEdgeOfDocument(IDispatchPtr pDispatchRange) {
831831 return rangePos;
832832}
833833
834- std::experimental:: optional< std::pair<float , float > >
834+ std::optional< std::pair<float , float > >
835835calculatePreAndPostColumnOffsets (IDispatchPtr pDispatchPageSetup) {
836836 float leftMargin = -1 .0f ;
837837 auto res = _com_dispatch_raw_propget ( pDispatchPageSetup, wdDISPID_PAGESETUP_LEFTMARGIN,
@@ -1182,8 +1182,8 @@ void winword_getTextInRange_helper(HWND hwnd, winword_getTextInRange_args* args)
11821182 if (text) {
11831183 int noteCharOffset=-1 ;
11841184 bool isNoteChar=false ;
1185- std::experimental:: optional<int > pageBreakCharIndex;
1186- std::experimental:: optional<int > columnBreakCharIndex;
1185+ std::optional<int > pageBreakCharIndex;
1186+ std::optional<int > columnBreakCharIndex;
11871187 if (!isFormField) {
11881188 // Force a new chunk before and after control+b (note characters)
11891189 for (int i=0 ;text[i]!=L' \0 ' ;++i) {
0 commit comments