From d20a010770892eb1207058d22ee3751a2ec8a9f5 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 24 Feb 2020 14:17:48 +0100 Subject: [PATCH] Esthetic fixes. --- src/_macros.h | 2 +- src/_mplcairo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_macros.h b/src/_macros.h index 3aa83318..b3f039c9 100644 --- a/src/_macros.h +++ b/src/_macros.h @@ -5,7 +5,7 @@ if (auto const& error_ = func(__VA_ARGS__); !error_) { \ throw \ std::runtime_error{ \ - #func " (" __FILE__ " line " + std::to_string(__LINE__) + ") failed "}; \ + #func " (" __FILE__ " line " + std::to_string(__LINE__) + ") failed"}; \ } \ } (void)0 diff --git a/src/_mplcairo.cpp b/src/_mplcairo.cpp index 8b4d80f7..9d14459b 100644 --- a/src/_mplcairo.cpp +++ b/src/_mplcairo.cpp @@ -1714,7 +1714,7 @@ void MathtextBackend::_draw( } }, [&](std::string name) { - index = FT_Get_Name_Index(ft_face, name.data()); + index = FT_Get_Name_Index(ft_face, name.c_str()); if (!index) { warn_on_missing_glyph(name); }