mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
Make Session::session_name_is_legal less magical
This commit is contained in:
parent
b9ae71a35e
commit
76c7e87c02
1 changed files with 2 additions and 2 deletions
|
|
@ -6763,9 +6763,9 @@ Session::update_latency_compensation (bool force_whole_graph, bool called_from_b
|
|||
const std::string
|
||||
Session::session_name_is_legal (const string& path)
|
||||
{
|
||||
char illegal_chars[] = { '/', '\\', ':', ';' };
|
||||
const string illegal_chars = "/\\:;";
|
||||
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
for (int i = 0; i < illegal_chars.length(); ++i) {
|
||||
if (path.find (illegal_chars[i]) != string::npos) {
|
||||
return std::string (1, illegal_chars[i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue