From 79ac26cb02920a51080ebbc19c3e8e40c3eafbd9 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 25 May 2014 16:55:49 -0400 Subject: [PATCH] Filter - The domSource function is no longer static, and is prototyped in Filter.h for general use. --- src/Filter.cpp | 4 ++-- src/Filter.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Filter.cpp b/src/Filter.cpp index 6f3f572dd..ab11bb8a5 100644 --- a/src/Filter.cpp +++ b/src/Filter.cpp @@ -40,10 +40,10 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// // Const iterator that can be derefenced into a Task by domSource. static Task dummy; -static Task& contextTask = dummy; +Task& contextTask = dummy; //////////////////////////////////////////////////////////////////////////////// -static bool domSource (const std::string& identifier, Variant& value) +bool domSource (const std::string& identifier, Variant& value) { std::string stringValue = context.dom.get (identifier, contextTask); if (stringValue != identifier) diff --git a/src/Filter.h b/src/Filter.h index 2d2b0bec8..e51dc2ef6 100644 --- a/src/Filter.h +++ b/src/Filter.h @@ -27,8 +27,12 @@ #ifndef INCLUDED_FILTER #define INCLUDED_FILTER +#include #include #include +#include + +bool domSource (const std::string&, Variant&); class Filter {