X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Ftape_file_matcher.cc;h=0f8594d7317d477fee2f48a6d82577b9f66ae1e7;hb=3b250c54754745985f087137b7ed9058a7bb6e90;hp=835a951f8a739b5c90572eb6c4a2780e33de988a;hpb=41ba22d2253f682861d4db15d62bdaac971ad99e;p=ardour.git diff --git a/libs/ardour/tape_file_matcher.cc b/libs/ardour/tape_file_matcher.cc index 835a951f8a..0f8594d731 100644 --- a/libs/ardour/tape_file_matcher.cc +++ b/libs/ardour/tape_file_matcher.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2007 Tim Mayberry + Copyright (C) 2007 Tim Mayberry This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,12 +16,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include +#include "pbd/error.h" -#include +#include "ardour/tape_file_matcher.h" #include "i18n.h" +using namespace std; + namespace { const char* const tape_file_regex_string = X_("/T[0-9][0-9][0-9][0-9]-"); @@ -38,9 +40,9 @@ TapeFileMatcher::TapeFileMatcher() tape_file_regex_string, REG_EXTENDED|REG_NOSUB))) { char msg[256]; - + regerror (err, &m_compiled_pattern, msg, sizeof (msg)); - + PBD::error << string_compose (_("Cannot compile tape track regexp for use (%1)"), msg) << endmsg; // throw }