]> git.tdb.fi Git - builder.git/blobdiff - source/unlink.cpp
Replace per-file copyright notices with a single file
[builder.git] / source / unlink.cpp
index fbe6388c90bacf02532f1a43e65bec73a903cd25..76445f6c6bf289ca761d8258c4c8c5cec8ab8548 100644 (file)
@@ -1,10 +1,4 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <msp/core/systemerror.h>
 #include <msp/fs/utils.h>
 #include "filetarget.h"
 #include "sourcepackage.h"
@@ -13,7 +7,7 @@ Distributed under the LGPL
 Unlink::Unlink(Builder &b, const FileTarget &t):
        Action(b)
 {
-       const SourcePackage &spkg=*static_cast<const SourcePackage *>(t.get_package());
+       const SourcePackage &spkg = *static_cast<const SourcePackage *>(t.get_package());
 
        announce(spkg.get_name(), "RM", relative(t.get_path(), spkg.get_source()).str());
 
@@ -21,7 +15,7 @@ Unlink::Unlink(Builder &b, const FileTarget &t):
        {
                unlink(t.get_path());
        }
-       catch(const Msp::SystemError &)
+       catch(const Msp::system_error &)
        { }
 }