Skip to content

Commit

Permalink
fix function type in fcitx5_import_addons
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored and wengxt committed Dec 8, 2024
1 parent e6c6bd6 commit 10f481a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/Fcitx5Macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function(fcitx5_import_addons target)
set(filename "${CMAKE_CURRENT_BINARY_DIR}/${target}-${addon}-import-addon.cpp")
file(WRITE "${filename}" "
#include <fcitx/addonloader.h>
extern fcitx::StaticAddonRegistry ${FCITX5_IMPORT_REGISTRY_VARNAME}();
extern fcitx::StaticAddonRegistry &${FCITX5_IMPORT_REGISTRY_VARNAME}();
FCITX_IMPORT_ADDON_FACTORY(${FCITX5_IMPORT_REGISTRY_VARNAME}, ${addon});
")
target_sources(${target} PRIVATE ${filename})
Expand Down

0 comments on commit 10f481a

Please sign in to comment.