diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-03 20:13:49 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-03 20:13:49 (GMT) |
commit | 29ea1e8227b3e892e7124c8cd8b5f2b8be81a058 (patch) | |
tree | aaf1a0a05d6691789fa79de86fc7f152cc411424 /src/formula.h | |
parent | 93f5398050245c427869d865fe04c43c907666d1 (diff) | |
download | Doxygen-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.h | 11 |
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: |