]> git.lyx.org Git - features.git/commitdiff
Add missing 'break' for four default cases in VCBackend.cpp
authorChristian Ridderström <chr@lyx.org>
Sun, 30 Jul 2017 12:23:38 +0000 (14:23 +0200)
committerChristian Ridderström <chr@lyx.org>
Sun, 30 Jul 2017 12:23:38 +0000 (14:23 +0200)
Replace four cases of 'default: ;' in VCBackend.cpp with
    default:
        break;

Justification: Make consistent with the rest of the LyX source code.
I found no other occurences of 'default: ;' in the source.

src/VCBackend.cpp

index a152a28d101e11f209f202243f6c0b011a91d2f3..edbf096e75ef6e1401114fac7f5360d2d1c63b68 100644 (file)
@@ -430,7 +430,8 @@ string RCS::revisionInfo(LyXVC::RevisionInfo const info)
                        return rev_date_cache_;
                case LyXVC::Time:
                        return rev_time_cache_;
-               default: ;
+               default:
+                       break;
        }
 
        return string();
@@ -1102,7 +1103,8 @@ string CVS::revisionInfo(LyXVC::RevisionInfo const info)
                        return rev_date_cache_;
                case LyXVC::Time:
                        return rev_time_cache_;
-               default: ;
+               default:
+                       break;
                }
        }
        return string();
@@ -1666,8 +1668,8 @@ string SVN::revisionInfo(LyXVC::RevisionInfo const info)
                        return rev_date_cache_;
                case LyXVC::Time:
                        return rev_time_cache_;
-               default: ;
-
+               default:
+                       break;
        }
 
        return string();
@@ -2135,8 +2137,8 @@ string GIT::revisionInfo(LyXVC::RevisionInfo const info)
                        return rev_date_cache_;
                case LyXVC::Time:
                        return rev_time_cache_;
-               default: ;
-
+               default:
+                       break;
        }
 
        return string();