Skip to content

Use g_strdup instead of cpdbGetStringCopy #32

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

Conversation

michaelweghorn
Copy link

GLib's g_strdup already provides the same functionality as cpdbGetStringCopy from cpdb-libs, so use the former instead of relying on a custom CPDB implementation.

For cpdbGetStringCopy, there's this pending cpdb-libs PR to remove it altogether: [2]

[1] https://docs.gtk.org/glib/func.strdup.html
[2] OpenPrinting/cpdb-libs#42

GLib's `g_strdup` already provides the same functionality
as `cpdbGetStringCopy` from cpdb-libs, so use the former
instead of relying on a custom CPDB implementation.

For `cpdbGetStringCopy`, there's this pending cpdb-libs
PR to remove it altogether: [2]

[1] https://docs.gtk.org/glib/func.strdup.html
[2] OpenPrinting/cpdb-libs#42
@tillkamppeter tillkamppeter merged commit e070b86 into OpenPrinting:master Jul 18, 2024
@michaelweghorn michaelweghorn deleted the michaelweghorn/port_from_cpdbGetStringCopy branch July 18, 2024 14:45
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.

2 participants