• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision29255 (tree)
Zeit2021-08-31 01:33:45
Autorstefankueng

Log Message

fix casting

Ändern Zusammenfassung

Diff

--- trunk/src/SVN/SVNStatus.cpp (revision 29254)
+++ trunk/src/SVN/SVNStatus.cpp (revision 29255)
@@ -395,7 +395,7 @@
395395
396396 void SVNStatus::GetStatusString(svn_wc_status_kind status, size_t bufLen, wchar_t* string)
397397 {
398- wchar_t* buf=nullptr;
398+ wchar_t* buf = nullptr;
399399 switch (status)
400400 {
401401 case svn_wc_status_none:
@@ -613,12 +613,12 @@
613613 return 0;
614614
615615 nResourceSize = ::SizeofResource(hInstance, hResource);
616- pImageEnd = reinterpret_cast<const STRINGRESOURCEIMAGE*>(reinterpret_cast<LPBYTE>(const_cast<STRINGRESOURCEIMAGE*>(pImage)) + nResourceSize);
616+ pImageEnd = reinterpret_cast<const STRINGRESOURCEIMAGE*>((reinterpret_cast<LPBYTE>(const_cast<STRINGRESOURCEIMAGE*>(pImage)) + nResourceSize));
617617 iIndex = uID & 0x000f;
618618
619619 while ((iIndex > 0) && (pImage < pImageEnd))
620620 {
621- pImage = reinterpret_cast<const STRINGRESOURCEIMAGE*>((reinterpret_cast<LPBYTE>(const_cast<STRINGRESOURCEIMAGE*>(pImage) + (sizeof(STRINGRESOURCEIMAGE) + (pImage->nLength * sizeof(WCHAR))))));
621+ pImage = reinterpret_cast<const STRINGRESOURCEIMAGE*>((reinterpret_cast<LPBYTE>(const_cast<STRINGRESOURCEIMAGE*>(pImage)) + (sizeof(STRINGRESOURCEIMAGE) + (pImage->nLength * sizeof(WCHAR)))));
622622 iIndex--;
623623 }
624624 if (pImage >= pImageEnd)
Show on old repository browser