2121#include < fcitx-utils/log.h>
2222#include < fcitx-utils/macros.h>
2323#include < fcitx-utils/misc.h>
24- #include < fcitx-utils/standardpath.h>
2524#include < fcitx-utils/standardpaths.h>
2625#include < fcitx-utils/stringutils.h>
2726#include < fcitx/action.h>
@@ -297,8 +296,8 @@ AnthyEngine::AnthyEngine(fcitx::Instance *instance)
297296 0 );
298297 if constexpr (fcitx::isAndroid () || fcitx::isApple () ||
299298 fcitx::isEmscripten ()) {
300- const auto &sp = fcitx::StandardPath ::global ();
301- std::string anthy_conf = sp.locate (fcitx::StandardPath::Type ::Data,
299+ const auto &sp = fcitx::StandardPaths ::global ();
300+ std::string anthy_conf = sp.locate (fcitx::StandardPathsType ::Data,
302301 " anthy/anthy-unicode.conf" );
303302 std::string anthy_prefix = fcitx::fs::dirName (anthy_conf);
304303 // "CONFFILE" must be overridden first to change main config file path
@@ -311,7 +310,7 @@ AnthyEngine::AnthyEngine(fcitx::Instance *instance)
311310 // /sdcard/Android/data/<pkg>/files/data/anthy
312311 anthy_conf_override (
313312 " XDG_CONFIG_HOME" ,
314- sp.userDirectory (fcitx::StandardPath::Type:: Data).c_str ());
313+ sp.userDirectory (fcitx::StandardPathsType:: Data). string ( ).c_str ());
315314 }
316315 if (anthy_init ()) {
317316 throw std::runtime_error (" Failed to init anthy library." );
@@ -477,8 +476,8 @@ std::string AnthyEngine::fullFileName(const std::string &name) {
477476 if (name.empty ()) {
478477 return {};
479478 }
480- return fcitx::StandardPath ::global ().locate (
481- fcitx::StandardPath::Type ::PkgData,
479+ return fcitx::StandardPaths ::global ().locate (
480+ fcitx::StandardPathsType ::PkgData,
482481 fcitx::stringutils::joinPath (" anthy" , name));
483482}
484483
0 commit comments