[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[TSVN] Very minor patch suggestion for SVNStatus.cpp

From: Will Dean <svn_at_indcomp.co.uk>
Date: 2004-11-05 13:59:21 CET

Stefan,

I just took an update today - you've done a great job on the /W4
warnings! Shall we go to /WX now...?

I saw a change you made in SVNStatus (only noticed it because of a conflict
with something of mine), and wondered if you might consider the appended
patch as an alternative.

This makes no functional difference to the code but is, I feel, slightly
clearer about the intention and slightly easier to maintain.

Cheers,

Will

Index: SVNStatus.cpp
===================================================================
--- SVNStatus.cpp (revision 1911)
+++ SVNStatus.cpp (working copy)
@@ -495,11 +495,7 @@
          } // switch (status)
  }

-#ifdef UNICODE
-int SVNStatus::LoadStringEx(HINSTANCE hInstance, UINT uID, LPTSTR
lpBuffer, int /*nBufferMax*/, WORD wLanguage)
-#else
  int SVNStatus::LoadStringEx(HINSTANCE hInstance, UINT uID, LPTSTR
lpBuffer, int nBufferMax, WORD wLanguage)
-#endif
  {
          const STRINGRESOURCEIMAGE* pImage;
          const STRINGRESOURCEIMAGE* pImageEnd;
@@ -511,6 +507,10 @@
  #endif
          int ret;

+#ifdef UNICODE
+ UNREFERENCED_PARAMETER(nBufferMax);
+#endif
+
          HRSRC hResource = FindResourceEx(hInstance, RT_STRING,
MAKEINTRESOURCE(((uID>>4)+1)), wLanguage);
          if (!hResource)
          {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Nov 5 14:00:25 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.