summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 7adb1a1..0e357d9 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -181,9 +181,9 @@ class FileDefImpl : public DefinitionMixin<FileDef>
bool m_subGrouping;
};
-FileDef *createFileDef(const char *p,const char *n,const char *ref,const char *dn)
+FileDef *createFileDef(const std::string &p,const std::string &n,const char *ref,const char *dn)
{
- return new FileDefImpl(p,n,ref,dn);
+ return new FileDefImpl(p.c_str(),n.c_str(),ref,dn);
}