Fwd: branches/extragear/graphics/digikam/libs/database

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: branches/extragear/graphics/digikam/libs/database

Bugzilla from andi.clemens@gmx.net
I guess we need to check wether we mix tabs and spaces.
Because if you look at this specific code example, it still indents the second
if-statement, and so does it in my Eclipse editor. But in VIM it is not
indented.
I will do this later this day and convert all tabs to spaces.

Andi


SVN commit 1198760 by mklapetek:

Code polish

 M  +2 -0      imageinfo.cpp  


--- branches/extragear/graphics/digikam/libs/database/imageinfo.cpp #1198759:1198760
@@ -670,8 +670,10 @@
                         const QList<qlonglong> &ancestorsAncestors = m_nodes.value(p).ancestors;
                         int score = 0;
                         foreach (qlonglong a, it->ancestors)
+                        {
                             if (ancestorsAncestors.contains(a))
                                 score++;
+                        }
                             if (score > maxScore)
                             {
                                 it->parent = p;

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: branches/extragear/graphics/digikam/libs/database

Martin Klapetek
Hmm...weird. I specifically used spaces, not tabs, and both kwrite and kate (+kdevelop) shows it fine and no tab signs (I have them displayed).

Marty

On Fri, Nov 19, 2010 at 17:12, Andi Clemens <[hidden email]> wrote:
I guess we need to check wether we mix tabs and spaces.
Because if you look at this specific code example, it still indents the second
if-statement, and so does it in my Eclipse editor. But in VIM it is not
indented.
I will do this later this day and convert all tabs to spaces.

Andi



---------- Forwarded message ----------
From: Martin Klapetek <[hidden email]>
To: [hidden email]
Date: Fri, 19 Nov 2010 17:02:39 +0100 (CET)
Subject: branches/extragear/graphics/digikam/libs/database
SVN commit 1198760 by mklapetek:

Code polish

 M  +2 -0      imageinfo.cpp


--- branches/extragear/graphics/digikam/libs/database/imageinfo.cpp #1198759:1198760
@@ -670,8 +670,10 @@
                        const QList<qlonglong> &ancestorsAncestors = m_nodes.value(p).ancestors;
                        int score = 0;
                        foreach (qlonglong a, it->ancestors)
+                        {
                            if (ancestorsAncestors.contains(a))
                                score++;
+                        }
                            if (score > maxScore)
                            {
                                it->parent = p;

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel



_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel