[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [libkface] /: code polish
From:       Andi Clemens <andi.clemens () googlemail ! com>
Date:       2012-01-01 1:12:20
Message-ID: 20120101011220.7A6C9A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 888f4b6913b93b8e480ef9d608764204af95989e by Andi Clemens.
Committed on 01/01/2012 at 01:58.
Pushed by aclemens into branch 'master'.

code polish

M  +2    -2    libkface/database.cpp
M  +1    -1    test/detect.cpp

http://commits.kde.org/libkface/888f4b6913b93b8e480ef9d608764204af95989e

diff --git a/libkface/database.cpp b/libkface/database.cpp
index 3ca2131..2b01ab1 100644
--- a/libkface/database.cpp
+++ b/libkface/database.cpp
@@ -214,7 +214,7 @@ bool Database::updateFaces(QList<Face>& faces)
         return false;
 
     std::vector<libface::Face> faceVec;
-    foreach (Face face, faces)
+    foreach(Face face, faces)
     {
         // If a name is already there in the dictionary, then set the ID from the \
dictionary, so that libface won't set it's own ID  if(d->hash.contains(face.name()))
@@ -266,7 +266,7 @@ QList<double> Database::recognizeFaces(QList<Face>& faces)
     }
 
     std::vector<libface::Face> faceVec;
-    foreach (const Face& face, faces)
+    foreach(const Face& face, faces)
     {
         faceVec.push_back(face.toFace(Face::ShallowCopy));
     }
diff --git a/test/detect.cpp b/test/detect.cpp
index 4bb8db8..68aeba1 100644
--- a/test/detect.cpp
+++ b/test/detect.cpp
@@ -74,7 +74,7 @@ void detectFaces(Database* d, const QString& file)
     fullImage->setPixmap(QPixmap::fromImage(img.scaled(250, 250, \
Qt::KeepAspectRatio)));  layout->addWidget(fullImage);
 
-    foreach (const Face& f, result)
+    foreach(const Face& f, result)
     {
         QLabel* label = new QLabel;
         label->setScaledContents(false);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic