X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Funlink.cpp;h=76445f6c6bf289ca761d8258c4c8c5cec8ab8548;hb=463a3521e27870294455373f9c69279069611975;hp=fbe6388c90bacf02532f1a43e65bec73a903cd25;hpb=3aad704c2d2fac737424a0a2697874927bd95c37;p=builder.git diff --git a/source/unlink.cpp b/source/unlink.cpp index fbe6388..76445f6 100644 --- a/source/unlink.cpp +++ b/source/unlink.cpp @@ -1,10 +1,4 @@ -/* $Id$ - -This file is part of builder -Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - +#include #include #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(t.get_package()); + const SourcePackage &spkg = *static_cast(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 &) { } }