summaryrefslogtreecommitdiffstats
path: root/src/formula.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-03 20:13:49 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-03 20:13:49 (GMT)
commit29ea1e8227b3e892e7124c8cd8b5f2b8be81a058 (patch)
treeaaf1a0a05d6691789fa79de86fc7f152cc411424 /src/formula.h
parent93f5398050245c427869d865fe04c43c907666d1 (diff)
downloadDoxygen-29ea1e8227b3e892e7124c8cd8b5f2b8be81a058.zip
Doxygen-29ea1e8227b3e892e7124c8cd8b5f2b8be81a058.tar.gz
Doxygen-29ea1e8227b3e892e7124c8cd8b5f2b8be81a058.tar.bz2
Refactoring: replace QTextStream by ifstream
Diffstat (limited to 'src/formula.h')
-rw-r--r--src/formula.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/formula.h b/src/formula.h
index 4bd90af..686cea2 100644
--- a/src/formula.h
+++ b/src/formula.h
@@ -1,12 +1,12 @@
/******************************************************************************
*
- *
+ *
*
* Copyright (C) 1997-2015 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
- * documentation under the terms of the GNU General Public License is hereby
- * granted. No representations are made about the suitability of this software
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
@@ -19,6 +19,7 @@
#define FORMULA_H
#include <memory>
+#include <string>
#include <qcstring.h>
/*! Manager class to handle formulas */
@@ -36,9 +37,9 @@ class FormulaManager
static FormulaManager &instance();
void readFormulas(const char *dir,bool doCompare=false);
void clear();
- int addFormula(const char *formulaText);
+ int addFormula(const std::string &formulaText);
void generateImages(const char *outputDir,Format format,HighDPI hd = HighDPI::Off) const;
- QCString findFormula(int formulaId) const;
+ std::string findFormula(int formulaId) const;
bool hasFormulas() const;
DisplaySize displaySize(int formulaId) const;
private: