From 04b183a9bc792a53a9f081353a79486faa4f3872 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 11 Dec 2014 23:32:12 +0100 Subject: fdo#39440 reduce scope of local variables This addresses some cppcheck warnings. Change-Id: Ifbc5a7a562e714f48dcfd51a75e9a4e0bfcde81c Reviewed-on: https://gerrit.libreoffice.org/13443 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- dtrans/source/win32/workbench/XTDo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dtrans') diff --git a/dtrans/source/win32/workbench/XTDo.cxx b/dtrans/source/win32/workbench/XTDo.cxx index 83b446464666..8961285763d6 100644 --- a/dtrans/source/win32/workbench/XTDo.cxx +++ b/dtrans/source/win32/workbench/XTDo.cxx @@ -127,12 +127,12 @@ STDMETHODIMP CXTDataObject::GetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium return E_INVALIDARG; HRESULT hr = E_FAIL; - char pBuff[] = "Test OleClipboard"; if ( CF_TEXT == pFormatetc->cfFormat ) { CHGlobalHelper hGlobHlp( TRUE ); + char pBuff[] = "Test OleClipboard"; hGlobHlp.Write( pBuff, sizeof( pBuff ), NULL ); pmedium->tymed = TYMED_HGLOBAL; -- cgit