Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: src/plugin/PluginClass.cpp

Issue 4859310991474688: Issue 1681 - Incorrect usage of BString (Closed)
Left Patch Set: Created Dec. 10, 2014, 11:34 a.m.
Right Patch Set: prevent warning of implicit conversion from std::wstring::size_type (size_t here) to signed int Created Dec. 12, 2014, 4:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/plugin/PluginUtil.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginClass.h" 3 #include "PluginClass.h"
4 #include "PluginSettings.h" 4 #include "PluginSettings.h"
5 #include "PluginSystem.h" 5 #include "PluginSystem.h"
6 #include "PluginFilter.h" 6 #include "PluginFilter.h"
7 #include "PluginMimeFilterClient.h" 7 #include "PluginMimeFilterClient.h"
8 #include "PluginClient.h" 8 #include "PluginClient.h"
9 #include "PluginClientFactory.h" 9 #include "PluginClientFactory.h"
10 #include "PluginMutex.h" 10 #include "PluginMutex.h"
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 case ID_MENU_SETTINGS: 1225 case ID_MENU_SETTINGS:
1226 { 1226 {
1227 CComQIPtr<IWebBrowser2> browser = GetAsyncBrowser(); 1227 CComQIPtr<IWebBrowser2> browser = GetAsyncBrowser();
1228 if (browser) 1228 if (browser)
1229 { 1229 {
1230 VARIANT vFlags; 1230 VARIANT vFlags;
1231 vFlags.vt = VT_I4; 1231 vFlags.vt = VT_I4;
1232 vFlags.intVal = navOpenInNewTab; 1232 vFlags.intVal = navOpenInNewTab;
1233 1233
1234 auto userSettingsFileUrl = UserSettingsFileUrl(); 1234 auto userSettingsFileUrl = UserSettingsFileUrl();
1235 ATL::CComBSTR urlToNavigate(userSettingsFileUrl.length(), userSettingsFi leUrl.c_str()); 1235 ATL::CComBSTR urlToNavigate(static_cast<int>(userSettingsFileUrl.length( )), userSettingsFileUrl.c_str());
Eric 2014/12/12 15:48:56 The CComBSTR constructor takes an ordinary signed
1236 HRESULT hr = browser->Navigate(urlToNavigate, &vFlags, NULL, NULL, NULL) ; 1236 HRESULT hr = browser->Navigate(urlToNavigate, &vFlags, NULL, NULL, NULL) ;
1237 if (FAILED(hr)) 1237 if (FAILED(hr))
1238 { 1238 {
1239 vFlags.intVal = navOpenInNewWindow; 1239 vFlags.intVal = navOpenInNewWindow;
1240 1240
1241 hr = browser->Navigate(urlToNavigate, &vFlags, NULL, NULL, NULL); 1241 hr = browser->Navigate(urlToNavigate, &vFlags, NULL, NULL, NULL);
1242 if (FAILED(hr)) 1242 if (FAILED(hr))
1243 { 1243 {
1244 DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_NAVIGATION, PLUGIN_ERROR_NAVIGATION _SETTINGS, "Navigation::Failed") 1244 DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_NAVIGATION, PLUGIN_ERROR_NAVIGATION _SETTINGS, "Navigation::Failed")
1245 } 1245 }
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 } 1865 }
1866 } 1866 }
1867 } 1867 }
1868 1868
1869 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); 1869 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT);
1870 } 1870 }
1871 1871
1872 return hTabWnd; 1872 return hTabWnd;
1873 1873
1874 } 1874 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld