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

Unified Diff: src/plugin/PluginUserSettings.cpp

Issue 29330798: Issue #3350 - Replace DISP_E_EXCEPTION returns with DISP_E_BADINDEX (Closed)
Patch Set: Created Nov. 25, 2015, 6:02 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginUserSettings.cpp
===================================================================
--- a/src/plugin/PluginUserSettings.cpp
+++ b/src/plugin/PluginUserSettings.cpp
@@ -17,7 +17,7 @@
#include "PluginStdAfx.h"
#include "PluginUserSettings.h"
-#include "AdblockPlusClient.h"
+#include "AdblockPlusClient.h"
#include "PluginSettings.h"
#include "../shared/Dictionary.h"
#include <unordered_map>
@@ -225,7 +225,7 @@
std::map<CString, CString> languageTitleList = settings->GetFilterLanguageTitleList();
if (index < 0 || index >= static_cast<int>(languageTitleList.size()))
- return DISP_E_EXCEPTION;
+ return DISP_E_BADINDEX;
CString language;
@@ -262,7 +262,7 @@
std::map<CString, CString> languageTitleList = settings->GetFilterLanguageTitleList();
if (index < 0 || index >= static_cast<int>(languageTitleList.size()))
- return DISP_E_EXCEPTION;
+ return DISP_E_BADINDEX;
CString languageTitle;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld