From 7a05aa6dc0621bd148feaad6173e4ed257e40d2a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 3 Feb 2019 22:42:55 +0100 Subject: [PATCH] Don't pass unused arguments to GetTextExtent() in printing sample No real changes, just remove the completely unused local variables and parameters to wxGraphicsContext::GetTextExtent() call. --- samples/printing/printing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/printing/printing.cpp b/samples/printing/printing.cpp index 682dac26c3..bb6c250427 100644 --- a/samples/printing/printing.cpp +++ b/samples/printing/printing.cpp @@ -243,8 +243,8 @@ void MyApp::Draw(wxDC&dc) gc->DrawText(text, 25.0, 60.0); // draw rectangle around the text - double w, h, d, el; - gc->GetTextExtent(text, &w, &h, &d, &el); + double w, h; + gc->GetTextExtent(text, &w, &h); gc->SetPen( *wxBLACK_PEN ); gc->DrawRectangle(25.0, 60.0, w, h);