[arrayfire] 54/84: Using auto to iterated extra paths in unified

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Jan 4 23:22:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository arrayfire.

commit e60fa941e49bc7c9d7f4042746c757b96d2f9d27
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Mon Dec 28 17:26:12 2015 -0500

    Using auto to iterated extra paths in unified
---
 src/api/unified/symbol_manager.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/unified/symbol_manager.cpp b/src/api/unified/symbol_manager.cpp
index f79dc6d..51d6693 100644
--- a/src/api/unified/symbol_manager.cpp
+++ b/src/api/unified/symbol_manager.cpp
@@ -135,8 +135,8 @@ LibHandle openDynLibrary(const int bknd_idx, int flag=RTLD_LAZY)
                                                     "/usr/local/arrayfire/lib/",
                                                    };
 
-            for (int i = 0; i < (int)extraLibPaths.size(); ++i) {
-                string abs_path = extraLibPaths[i] + bkndLibName;
+            for (auto libPath: extraLibPaths) {
+                string abs_path = libPath + bkndLibName;
                 retVal = dlopen(abs_path.c_str(), flag);
                 if (retVal != NULL) {
                     if (show_load_path)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list