Ver Fonte

fixed build warning

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@742 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden há 11 anos atrás
pai
commit
a59c2aaf32
1 ficheiros alterados com 2 adições e 6 exclusões
  1. 2 6
      ToolTipEx.cpp

+ 2 - 6
ToolTipEx.cpp

@@ -147,7 +147,7 @@ BOOL CToolTipEx::Show(CPoint point)
 			long lNewWidth = (long)rect.Width() + (long)(rect.Width() *1.5);
 			rect.right = rect.left + lNewWidth;
 
-			long lNewHeight = rect.Height() + (rect.Height() *1.5);
+			long lNewHeight = (long)rect.Height() + (long)(rect.Height() *1.5);
 			rect.bottom = rect.top + lNewHeight;
 		}
 
@@ -641,11 +641,7 @@ void CToolTipEx::HighlightSearchText()
 	long n = -1;
 
 	ft.lpstrText = m_searchText;
-
-
-	long start;
-	long end;
-
+	
 	ft.chrg.cpMin = 0;
 	ft.chrg.cpMax = -1;