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

Side by Side Diff: src/plugin/PluginClass.cpp

Issue 5137721374801920: Issue #1173 - Default behavior for catch-all blocks
Patch Set: add 'const'; roll PluginErrorCodes.h into PluginDebug.h Created March 6, 2015, 6 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 } 760 }
761 /* 761 /*
762 * Ordinarily a method not dispatched should return DISP_E_MEMBERNOTFOUND. 762 * Ordinarily a method not dispatched should return DISP_E_MEMBERNOTFOUND.
763 * As a conservative initial change, we leave it behaving as before, 763 * As a conservative initial change, we leave it behaving as before,
764 * which is to do nothing and return S_OK. 764 * which is to do nothing and return S_OK.
765 */ 765 */
766 // do nothing 766 // do nothing
767 break; 767 break;
768 } 768 }
769 } 769 }
770 catch(...) 770 catch (...)
771 { 771 {
772 DEBUG_GENERAL( "Caught unknown exception in CPluginClass::Invoke" ); 772 EntryPointExceptionDefault("CPluginClass::Invoke");
773 return E_FAIL; 773 return E_FAIL;
774 } 774 }
775 return S_OK; 775 return S_OK;
776 } 776 }
777 777
778 bool CPluginClass::InitObject(bool bBHO) 778 bool CPluginClass::InitObject(bool bBHO)
779 { 779 {
780 DEBUG_GENERAL("InitObject"); 780 DEBUG_GENERAL("InitObject");
781 CPluginSettings* settings = CPluginSettings::GetInstance(); 781 CPluginSettings* settings = CPluginSettings::GetInstance();
782 782
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 } 1886 }
1887 } 1887 }
1888 } 1888 }
1889 1889
1890 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); 1890 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT);
1891 } 1891 }
1892 1892
1893 return hTabWnd; 1893 return hTabWnd;
1894 1894
1895 } 1895 }
OLDNEW
« src/plugin/Exception.h ('K') | « src/plugin/Exception.h ('k') | src/plugin/PluginDebug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld