From da7bead8c62b4c854029ec019a2f13f6de887a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 15 Jun 2005 04:11:14 +0000 Subject: [PATCH] Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13140 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/Filter.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/apps/showimage/Filter.cpp b/src/apps/showimage/Filter.cpp index 8aecca08d0..43a38e3a11 100644 --- a/src/apps/showimage/Filter.cpp +++ b/src/apps/showimage/Filter.cpp @@ -5,7 +5,7 @@ // Filter.cpp // // -// Copyright (c) 2003 OpenBeOS Project +// Copyright (c) 2003-2005 Haiku Project // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), @@ -34,6 +34,7 @@ extern "C" int _kget_cpu_state_(int cpu); + // Implementation of FilterThread FilterThread::FilterThread(Filter* filter, int32 i, int32 n, bool runInCurrentThread) : fFilter(filter) @@ -250,16 +251,15 @@ Filter::NumberOfActiveCPUs() const system_info info; get_system_info(&info); count = info.cpu_count; - int32 CPUCount = 0; + int32 cpuCount = 0; for (int i = 0; i < count; i ++) { - if (_kget_cpu_state_(i)) { - CPUCount ++; - } + if (_kget_cpu_state_(i)) + cpuCount++; } - if (CPUCount == 0) { - CPUCount = 1; - } - return CPUCount; + if (cpuCount == 0) + cpuCount = 1; + + return cpuCount; } // Implementation of (bilinear) Scaler