From 900577c7e71534ec32dcb4e0677a509a6e517b12 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 5 Aug 2008 22:40:31 +0000 Subject: NR::Maybe => boost::optional (bzr r6569) --- src/graphlayout/graphlayout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphlayout/graphlayout.cpp') diff --git a/src/graphlayout/graphlayout.cpp b/src/graphlayout/graphlayout.cpp index 9285e9618..60cdab814 100644 --- a/src/graphlayout/graphlayout.cpp +++ b/src/graphlayout/graphlayout.cpp @@ -124,7 +124,7 @@ void graphlayout(GSList const *const items) { ++i) { SPItem *u=*i; - NR::Maybe const item_box(sp_item_bbox_desktop(u)); + boost::optional const item_box(sp_item_bbox_desktop(u)); if(item_box) { NR::Point ll(item_box->min()); NR::Point ur(item_box->max()); @@ -235,7 +235,7 @@ void graphlayout(GSList const *const items) { map::iterator i=nodelookup.find(u->id); if(i!=nodelookup.end()) { Rectangle* r=rs[i->second]; - NR::Maybe item_box(sp_item_bbox_desktop(u)); + boost::optional item_box(sp_item_bbox_desktop(u)); if(item_box) { NR::Point const curr(item_box->midpoint()); NR::Point const dest(r->getCentreX(),r->getCentreY()); -- cgit v1.2.3