summaryrefslogtreecommitdiffstats
path: root/src/pre.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-30 18:34:15 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-30 18:34:15 (GMT)
commite55c2248b46d5580e5b184d2ff9c773f333308b2 (patch)
tree78e375caf67e26d4d2857a94d25a508a67bf64b8 /src/pre.h
parentabf1e46f7bc2c31972d36231b4672580704fcc10 (diff)
downloadDoxygen-e55c2248b46d5580e5b184d2ff9c773f333308b2.zip
Doxygen-e55c2248b46d5580e5b184d2ff9c773f333308b2.tar.gz
Doxygen-e55c2248b46d5580e5b184d2ff9c773f333308b2.tar.bz2
Make commentscan.l reentrant
Diffstat (limited to 'src/pre.h')
-rw-r--r--src/pre.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pre.h b/src/pre.h
index 137b397..47f6652 100644
--- a/src/pre.h
+++ b/src/pre.h
@@ -18,6 +18,8 @@
#ifndef PRE_H
#define PRE_H
+#include <memory>
+
class BufStr;
class Preprocessor
@@ -29,7 +31,7 @@ class Preprocessor
void addSearchDir(const char *dir);
private:
struct Private;
- Private *p;
+ std::unique_ptr<Private> p;
};
#endif