diff options
author | David Tardon <dtardon@redhat.com> | 2012-04-17 07:17:45 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-04-18 21:01:17 +0200 |
commit | 2ff039195f817f3c372b4ba3bf59539948ce213d (patch) | |
tree | ba250ece9a4e49e3dbd3b0e5291272deb0c2cab1 /jvmfwk/plugins | |
parent | ea68b1a8977becd8f827d41b171e89d3b490216e (diff) |
use SAL_N_ELEMENTS
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx index 1ba0279e9724..1ffa982438fd 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx @@ -59,7 +59,7 @@ char const* const* SunInfo::getJavaExePaths(int * size) "jre/bin/java" #endif }; - *size = sizeof (ar) / sizeof (char*); + *size = SAL_N_ELEMENTS(ar); return ar; } @@ -79,7 +79,7 @@ char const* const* SunInfo::getRuntimePaths(int * size) #endif }; - *size = sizeof(ar) / sizeof (char*); + *size = SAL_N_ELEMENTS(ar); return ar; } @@ -94,7 +94,7 @@ char const* const* SunInfo::getLibraryPaths(int* size) "/lib/" JFW_PLUGIN_ARCH }; - *size = sizeof(ar) / sizeof (char*); + *size = SAL_N_ELEMENTS(ar); return ar; #else *size = 0; |