summaryrefslogtreecommitdiff
path: root/project2/xslRows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/xslRows.cpp')
-rw-r--r--project2/xslRows.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/project2/xslRows.cpp b/project2/xslRows.cpp
index b30d9b6..9c4ce98 100644
--- a/project2/xslRows.cpp
+++ b/project2/xslRows.cpp
@@ -110,19 +110,19 @@ XslRows::execute(const RowProcessor * rp) const
values[xp.first] = xpathObjI->floatval;
}
else if (xpathObjI->stringval) {
- values[xp.first] = boost::shared_ptr<const Glib::ustring>(new Glib::ustring((const char *)xpathObjI->stringval));
+ values[xp.first] = Glib::ustring((const char *)xpathObjI->stringval);
}
else if (xpathObjI->nodesetval) {
- boost::shared_ptr<Glib::ustring> str = boost::shared_ptr<Glib::ustring>(new Glib::ustring());
+ Glib::ustring str;
for (int i = 0; i < xpathObjI->nodesetval->nodeNr; i += 1) {
xmlNodePtr n = xpathObjI->nodesetval->nodeTab[i];
if (n->content) {
- *str += (const char *)n->content;
+ str += (const char *)n->content;
}
for (n = n->children; n; n = n->next) {
xmlChar * val = n->content;
if (val) {
- *str += (const char *)val;
+ str += (const char *)val;
}
}
}