mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-28 03:21:28 +08:00
Remove optional title parameter from MyPrintout in the sample
This was inconsistently specified or omitted, just remove it entirely. No real changes.
This commit is contained in:
@@ -362,7 +362,7 @@ void MyFrame::OnPrint(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
// wxPrinter copies printDialogData internally, so we have to pass this
|
||||
// instance in order to evaluate users inputs.
|
||||
MyPrintout printout(this, &printer.GetPrintDialogData(), "My printout");
|
||||
MyPrintout printout(this, &printer.GetPrintDialogData());
|
||||
|
||||
SetStatusText(""); // clear previous "cancelled" message, if any
|
||||
|
||||
@@ -419,7 +419,7 @@ void MyFrame::OnPrintPS(wxCommandEvent& WXUNUSED(event))
|
||||
wxPrintDialogData printDialogData(* g_printData);
|
||||
|
||||
wxPostScriptPrinter printer(&printDialogData);
|
||||
MyPrintout printout(this, &printer.GetPrintDialogData(), "My printout");
|
||||
MyPrintout printout(this, &printer.GetPrintDialogData());
|
||||
printer.Print(this, &printout, true/*prompt*/);
|
||||
|
||||
(*g_printData) = printer.GetPrintDialogData().GetPrintData();
|
||||
|
||||
@@ -86,9 +86,8 @@ class MyPrintout: public wxPrintout
|
||||
{
|
||||
public:
|
||||
MyPrintout(MyFrame* frame,
|
||||
wxPrintDialogData* printDlgData,
|
||||
const wxString& title = "My printout")
|
||||
: wxPrintout(title)
|
||||
wxPrintDialogData* printDlgData)
|
||||
: wxPrintout("My printout")
|
||||
{
|
||||
m_frame = frame;
|
||||
m_printDlgData = printDlgData;
|
||||
|
||||
Reference in New Issue
Block a user