From 445a3d2da46cec360cec4e11ef0102c9328dc8f7 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 27 Jul 2015 12:46:54 -0700 Subject: [PATCH] Whitespace cleanpu --- Texconv/texconv.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Texconv/texconv.cpp b/Texconv/texconv.cpp index d98501b..6447b1e 100644 --- a/Texconv/texconv.cpp +++ b/Texconv/texconv.cpp @@ -650,7 +650,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[]) float alphaWeight = 1.f; DWORD dwNormalMap = 0; float nmapAmplitude = 1.f; - + WCHAR szPrefix [MAX_PATH]; WCHAR szSuffix [MAX_PATH]; WCHAR szOutputDir[MAX_PATH]; @@ -951,7 +951,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[]) } } else - { + { SConversion conv; wcscpy_s(conv.szSrc, MAX_PATH, pArg); @@ -1093,7 +1093,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[]) DWORD wicFlags = dwFilter; if (FileType == CODEC_DDS) wicFlags |= WIC_FLAGS_ALL_FRAMES; - + hr = LoadFromWICFile( pConv->szSrc, wicFlags, &info, *image ); if ( FAILED(hr) ) { @@ -1527,7 +1527,6 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[]) assert( info.miscFlags2 == tinfo.miscFlags2 ); assert( info.dimension == tinfo.dimension ); - image.swap( timage ); cimage.reset(); }