diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-02 21:55:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-02 21:55:57 +0000 |
commit | 0ca0de7698b523effaaf6cc9c608e936fa5aaf86 (patch) | |
tree | 1e6ce038dc27a1ccddb5e3f863607c83eece2e98 /plugins/WebView/src/webview_datawnd.cpp | |
parent | aeae01dc50a5adea8fe003c8195540b1f2b2169f (diff) |
useless calls of mir_*strlen in DrawText replaced with -1
git-svn-id: http://svn.miranda-ng.org/main/trunk@11223 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView/src/webview_datawnd.cpp')
-rw-r--r-- | plugins/WebView/src/webview_datawnd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/WebView/src/webview_datawnd.cpp b/plugins/WebView/src/webview_datawnd.cpp index a552c52554..5af34f604a 100644 --- a/plugins/WebView/src/webview_datawnd.cpp +++ b/plugins/WebView/src/webview_datawnd.cpp @@ -62,10 +62,10 @@ INT_PTR CALLBACK DlgProcFind(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara free(tempbuffer);
Filter(buff);
- CharUpperBuffA(buff, mir_strlen(buff));
+ CharUpperBuffA(buff, (int)strlen(buff));
GetDlgItemTextA(hwndDlg, IDC_FINDWHAT, NewSearchstr, SIZEOF(NewSearchstr));
- CharUpperBuffA(NewSearchstr, mir_strlen(NewSearchstr));
+ CharUpperBuffA(NewSearchstr, (int)strlen(NewSearchstr));
OLDstartposition = startposition;
@@ -516,15 +516,15 @@ void ValidatePosition(HWND hwndDlg) MONITORINFO monitorInfo;
monitorInfo.cbSize = sizeof(MONITORINFO);
- if ( GetMonitorInfo(hMonitor, &monitorInfo))
+ if (GetMonitorInfo(hMonitor, &monitorInfo))
CopyMemory(&r, &monitorInfo.rcMonitor, sizeof(RECT));
// /window going off right of screen*
- if ((Xposition + WindowWidth) >= r.right)
+ if (Xposition + WindowWidth >= r.right)
Xposition = r.right - WindowWidth;
// window going off bottom of screen
- if ((Yposition + (WindowHeight)) >= r.bottom)
+ if (Yposition + WindowHeight >= r.bottom)
Yposition = r.bottom - WindowHeight;
// window going off left of screen
|