Commit 4f4d7e35 authored by Ronan's avatar Ronan
Browse files

fix(CpimParser): use static variable instead of define (CPIM_GRAMMAR)

parent 682e585c
Pipeline #298 failed with stage
in 0 seconds
......@@ -30,14 +30,16 @@
#include "cpim-parser.h"
#define CPIM_GRAMMAR "cpim_grammar"
// =============================================================================
using namespace std;
LINPHONE_BEGIN_NAMESPACE
namespace {
string CpimGrammar("cpim_grammar");
}
namespace Cpim {
class Node {
public:
......@@ -579,7 +581,7 @@ public:
Cpim::Parser::Parser () : Singleton(*new ParserPrivate) {
L_D();
d->grammar = belr::GrammarLoader::get().load(CPIM_GRAMMAR);
d->grammar = belr::GrammarLoader::get().load(CpimGrammar);
if (!d->grammar)
lFatal() << "Unable to load CPIM grammar.";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment