diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-01-22 18:46:36 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-01-22 18:46:36 +0000 |
| commit | c35fe9c8d780e447dd6e3a8263689ea661a630de (patch) | |
| tree | 7c1c68799e245b11ab6fde92b4dbf36528b9c3a3 /src | |
| parent | fix possible memory leak (diff) | |
| download | inkscape-c35fe9c8d780e447dd6e3a8263689ea661a630de.tar.gz inkscape-c35fe9c8d780e447dd6e3a8263689ea661a630de.zip | |
direct use of Glib::ustring
(bzr r12053)
Diffstat (limited to 'src')
| -rw-r--r-- | src/document.cpp | 2 | ||||
| -rw-r--r-- | src/extension/execution-env.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/icon-preview.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/document.cpp b/src/document.cpp index 172037518..25ad735e1 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -862,7 +862,7 @@ SPDocument::removeUndoObserver(Inkscape::UndoStackObserver& observer) SPObject *SPDocument::getObjectById(Glib::ustring const &id) const { - return getObjectById( id.c_str() ); + return getObjectById( id ); } SPObject *SPDocument::getObjectById(gchar const *id) const diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp index 4058fd787..78129cbc5 100644 --- a/src/extension/execution-env.cpp +++ b/src/extension/execution-env.cpp @@ -195,7 +195,7 @@ ExecutionEnv::reselect (void) { Inkscape::Selection * selection = sp_desktop_selection(desktop); for (std::list<Glib::ustring>::iterator i = _selected.begin(); i != _selected.end(); ++i) { - SPObject * obj = doc->getObjectById(i->c_str()); + SPObject * obj = doc->getObjectById(*i); if (obj != NULL) { selection->add(obj); } diff --git a/src/ui/dialog/icon-preview.cpp b/src/ui/dialog/icon-preview.cpp index de213ca85..16ea5c283 100644 --- a/src/ui/dialog/icon-preview.cpp +++ b/src/ui/dialog/icon-preview.cpp @@ -352,7 +352,7 @@ void IconPreviewPanel::refreshPreview() SPObject *target = 0; if ( selectionButton && selectionButton->get_active() ) { - target = (hold && !targetId.empty()) ? desktop->doc()->getObjectById( targetId.c_str() ) : 0; + target = (hold && !targetId.empty()) ? desktop->doc()->getObjectById( targetId ) : 0; if ( !target ) { targetId.clear(); Inkscape::Selection * sel = sp_desktop_selection(desktop); |
