summaryrefslogtreecommitdiff
path: root/src/metadata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/metadata.cpp')
-rw-r--r--src/metadata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/metadata.cpp b/src/metadata.cpp
index 88bdce6..51b69d2 100644
--- a/src/metadata.cpp
+++ b/src/metadata.cpp
@@ -715,7 +715,7 @@ initMatchValue (CompDisplay *d,
{
xmlChar *value;
- matchInit (&v->match);
+ v->match = new CompMatch ();
if (!doc)
return;
@@ -723,12 +723,12 @@ initMatchValue (CompDisplay *d,
value = xmlNodeListGetString (doc, node->xmlChildrenNode, 1);
if (value)
{
- matchAddFromString (&v->match, (char *) value);
+ *v->match = (char *) value;
xmlFree (value);
}
if (!helper)
- matchUpdate (d, &v->match);
+ v->match->update (d);
}
static void