From 882a555db830c6d81763ae58eedfbee540e2316d Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 9 May 2017 13:50:24 +0000 Subject: unnecessary Tcl_DStringInit(), since Tcl_WinUtfToTChar() already does that. --- macosx/tkMacOSXDialog.c | 6 +++--- win/tkWinSend.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c index ca55c60..42cd1e5 100644 --- a/macosx/tkMacOSXDialog.c +++ b/macosx/tkMacOSXDialog.c @@ -755,15 +755,15 @@ Tk_GetSaveFileObjCmd( [label setBordered:NO]; [label setBezeled:NO]; [label setDrawsBackground:NO]; - + NSPopUpButton *popupButton = [[NSPopUpButton alloc] initWithFrame:NSMakeRect(50.0, 2, 140, 22.0) pullsDown:NO]; [popupButton addItemsWithTitles:saveFileTypes]; [popupButton setAction:@selector(saveFormat:)]; - + [accessoryView addSubview:label]; [accessoryView addSubview:popupButton]; [savepanel setAllowedFileTypes:saveFileTypes]; - + [savepanel setAccessoryView:accessoryView]; [savepanel setAllowsOtherFileTypes:YES]; } diff --git a/win/tkWinSend.c b/win/tkWinSend.c index c999c0b..fca8561 100644 --- a/win/tkWinSend.c +++ b/win/tkWinSend.c @@ -619,7 +619,6 @@ BuildMoniker( LPMONIKER pmkItem = NULL; Tcl_DString dString; - Tcl_DStringInit(&dString); Tcl_WinUtfToTChar(name, -1, &dString); hr = CreateFileMoniker((LPOLESTR)Tcl_DStringValue(&dString), &pmkItem); Tcl_DStringFree(&dString); -- cgit v0.12