summaryrefslogtreecommitdiffstats
path: root/src/emoji.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-14 14:47:59 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-18 20:57:40 (GMT)
commitfa1897b1889f7bf74de68f1ac99cf3be343a7551 (patch)
treeea14c45937cb6fef237c0fcafbd5b0923abd8f0a /src/emoji.cpp
parent0d05e79d67b5b808918541f429b06805207e8bdb (diff)
downloadDoxygen-fa1897b1889f7bf74de68f1ac99cf3be343a7551.zip
Doxygen-fa1897b1889f7bf74de68f1ac99cf3be343a7551.tar.gz
Doxygen-fa1897b1889f7bf74de68f1ac99cf3be343a7551.tar.bz2
Refactoring: replace QFile/FTextStream with fstream/stringstream
Diffstat (limited to 'src/emoji.cpp')
-rw-r--r--src/emoji.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/emoji.cpp b/src/emoji.cpp
index a8a2bb8..9871c22 100644
--- a/src/emoji.cpp
+++ b/src/emoji.cpp
@@ -15,7 +15,6 @@
#include "emoji.h"
#include "message.h"
-#include "ftextstream.h"
#include "util.h"
static struct emojiEntityInfo
@@ -1555,21 +1554,20 @@ void EmojiEntityMapper::deleteInstance()
* @return the code for the requested Emoji entity name,
* in case the requested Emoji item does not exist `-1` is returned.
*/
-int EmojiEntityMapper::symbol2index(const QCString &symName) const
+int EmojiEntityMapper::symbol2index(const std::string &symName) const
{
- auto it = m_name2symGh.find(symName.str());
+ auto it = m_name2symGh.find(symName);
return it!=m_name2symGh.end() ? it->second : -1;
}
/*!
* @brief Writes the list of supported emojis to the given file.
*/
-void EmojiEntityMapper::writeEmojiFile(QFile &file)
+void EmojiEntityMapper::writeEmojiFile(std::ostream &t)
{
- FTextStream t(&file);
for (int i = 0; i < g_numEmojiEntities; i++)
{
- t << g_emojiEntities[i].name << endl;
+ t << g_emojiEntities[i].name << "\n";
}
}