From 8b6aac48709ba9441f76afc7b79380cf99fc5189 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Aug 2012 15:05:35 +0000 Subject: this if() isn't needed anymore git-svn-id: http://svn.miranda-ng.org/main/trunk@1382 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/newplugins.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules') diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index b03a5d8d34..3a07390076 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -103,13 +103,9 @@ bool hasMuuid(const BASIC_PLUGIN_INFO& bpi, const MUUID& uuid) int getDefaultPluginIdx(const MUUID& muuid) { - for (int i=0; i < SIZEOF(pluginDefault); i++) { - if (pluginDefault[i].stdplugname == NULL) - break; - + for (int i=0; i < SIZEOF(pluginDefault); i++) if (equalUUID(muuid, pluginDefault[i].uuid)) return i; - } return -1; } -- cgit v1.2.3