Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

fix: MessageChain.h #191

Merged
merged 1 commit into from
Mar 19, 2023
Merged

fix: MessageChain.h #191

merged 1 commit into from
Mar 19, 2023

Conversation

shuli106
Copy link
Contributor

在使用MessageChain::first()时,发现函数体没有被声明为const
auto firstImage = e.message.first<Image>();
会提示如下错误
error: passing 'const MiraiCP::MessageChain' as 'this' argument discards qualifiers [-fpermissive]

@Antares0982 Antares0982 self-requested a review March 19, 2023 05:19
@Antares0982
Copy link
Collaborator

请将base分支改为dev

@Nambers Nambers added the t: bug 类型:bug label Mar 19, 2023
@shuli106 shuli106 changed the base branch from main to dev March 19, 2023 05:25
@shuli106
Copy link
Contributor Author

请将base分支改为dev

已修改

@Antares0982 Antares0982 merged commit f85640c into Nambers:dev Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
t: bug 类型:bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants