Skip to content

Commit

Permalink
Use refsink in src/core/gui/OpacityPreviewToolbox.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Hennion <17818041+bhennion@users.noreply.github.com>
  • Loading branch information
jerdoe and bhennion committed Oct 26, 2023
1 parent 43f987c commit afd3452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/gui/OpacityPreviewToolbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static int percentToByte(double percent) { return static_cast<int>(std::round(pe
static double byteToPercent(int byte) { return byte / 2.55; }

OpacityPreviewToolbox::OpacityPreviewToolbox(MainWindow* theMainWindow, GtkOverlay* overlay):
theMainWindow(theMainWindow), overlay(overlay, xoj::util::ref) {
theMainWindow(theMainWindow), overlay(overlay, xoj::util::refsink) {
this->opacityPreviewToolbox.widget = theMainWindow->get("opacityPreviewTool");

gtk_overlay_add_overlay(overlay, this->opacityPreviewToolbox.widget);
Expand Down

0 comments on commit afd3452

Please sign in to comment.