X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fos_unix.cpp;h=3f16dd86563588e5e4ed6da5e6f952c9cf05f1db;hb=cf14e814124ccbc8155fa1dde98d03be319c0e87;hp=230dab5aa953a4d893af6e02ff665cc58d24f7e3;hpb=d568846e0331adc9a879c68b00c7dff901692dc7;p=lyx.git diff --git a/src/support/os_unix.cpp b/src/support/os_unix.cpp index 230dab5aa9..3f16dd8656 100644 --- a/src/support/os_unix.cpp +++ b/src/support/os_unix.cpp @@ -43,12 +43,12 @@ namespace { int argc_ = 0; char ** argv_ = 0; -} // namespace anon +} // namespace -void init(int argc, char * argv[]) +void init(int argc, char ** argv[]) { argc_ = argc; - argv_ = argv; + argv_ = *argv; // Set environment's default locale setlocale(LC_ALL, ""); @@ -193,23 +193,6 @@ string latex_path_list(string const & p) } -bool is_valid_strftime(string const & p) -{ - string::size_type pos = p.find_first_of('%'); - while (pos != string::npos) { - if (pos + 1 == string::npos) - break; - if (!containsOnly(p.substr(pos + 1, 1), - "aAbBcCdDeEFgGhHIjklmMnOpPrRsStTuUVwWxXyYzZ%+")) - return false; - if (pos + 2 == string::npos) - break; - pos = p.find_first_of('%', pos + 2); - } - return true; -} - - char const * popen_read_mode() { return "r";