mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Avoid duplicate symbols when linking .o files
Mark some functions as inline to avoid generating symbols that would produce duplicate errors when linking multiple .o files that include the SixtyFPS headers.
This commit is contained in:
parent
3f6bbaf53a
commit
d4178e0935
4 changed files with 21 additions and 19 deletions
|
@ -176,7 +176,7 @@ private:
|
|||
};
|
||||
|
||||
namespace private_api {
|
||||
cbindgen_private::Slice<uint8_t> string_to_slice(std::string_view str)
|
||||
inline cbindgen_private::Slice<uint8_t> string_to_slice(std::string_view str)
|
||||
{
|
||||
return cbindgen_private::Slice<uint8_t> {
|
||||
const_cast<unsigned char *>(reinterpret_cast<const unsigned char *>(str.data())), str.size()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue