diff options
author | Aki <please@ignore.pl> | 2021-07-17 13:37:52 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-07-17 13:37:52 +0200 |
commit | 901f3b26e0a4bec74e234abff18d241c9744064b (patch) | |
tree | b3a31ca420401bf5cfee01eb463a5f8d9f5c6251 /markdown.cpp | |
parent | 74b83920ed63454bf8dd2cd5efed12888096f24a (diff) | |
download | markdown-901f3b26e0a4bec74e234abff18d241c9744064b.zip markdown-901f3b26e0a4bec74e234abff18d241c9744064b.tar.gz markdown-901f3b26e0a4bec74e234abff18d241c9744064b.tar.bz2 |
Clean-up to cpp
Diffstat (limited to 'markdown.cpp')
-rw-r--r-- | markdown.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown.cpp b/markdown.cpp index e61601d..ddad512 100644 --- a/markdown.cpp +++ b/markdown.cpp @@ -1,6 +1,5 @@ -#include <stdio.h> - #include <fstream> +#include <iostream> #include <iterator> #include <string> @@ -38,7 +37,7 @@ struct Markdown : public imgui_md static void glfw_error_callback(int error, const char * description) { - fprintf(stderr, "glfw (%d): %s\n", error, description); + std::cerr << "glfw (" << error << "): " << description << std::endl; } static void markdown(const char * str, const char * str_end) @@ -108,7 +107,8 @@ int main(int argc, char ** argv) ImGui::Begin( "Markdown", nullptr, - ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoSavedSettings + ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | + ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoSavedSettings ); markdown(text.data(), text.data() + text.size()); ImGui::End(); |