Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create std::wstrings out of const wchar_t* so a copy is created every time #3061

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

allexzander
Copy link
Contributor

@allexzander allexzander commented Apr 2, 2021

Another way to fix const QString& passing by reference, issue.
As an alternative solution. This also works. I haven't really come up with an idea of why this is happening.

FYI, calling QString::toStdWString().data directly in the place of usage (filling in the info structure with these strings) works too. So, I am wondering, if I should do that instead?

@allexzander allexzander force-pushed the bugfix/vfs-syncroot-reg-params-non-temp branch from 8a39f1d to fa76e12 Compare April 2, 2021 16:45
@allexzander allexzander force-pushed the bugfix/vfs-syncroot-reg-params-non-temp branch from 1218090 to 327bb31 Compare April 6, 2021 07:00
… time.

Signed-off-by: allexzander <blackslayer4@gmail.com>
@allexzander allexzander force-pushed the bugfix/vfs-syncroot-reg-params-non-temp branch from 4e4737e to 0a33e99 Compare April 6, 2021 07:03
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-3061-4e4737e6d84c5e5da308d6568b421b9a49c743b4-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@allexzander allexzander requested a review from er-vin April 6, 2021 07:52
@allexzander allexzander marked this pull request as ready for review April 6, 2021 07:52
@allexzander allexzander changed the title Create std::wstrings out of const wchar_t* so a copy is created every… Create std::wstrings out of const wchar_t* so a copy is created every time Apr 6, 2021
@allexzander allexzander merged commit 4c83780 into master Apr 6, 2021
@allexzander allexzander deleted the bugfix/vfs-syncroot-reg-params-non-temp branch April 6, 2021 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants