mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Merge branch 'master' into v0.6.0
This commit is contained in:
@@ -603,12 +603,18 @@ int main(int argc, char** argv) {
|
|||||||
// These serializers do not support opening unicode paths. Therefore
|
// These serializers do not support opening unicode paths. Therefore
|
||||||
// a random temp file is generated using only ASCII characters instead.
|
// a random temp file is generated using only ASCII characters instead.
|
||||||
std::random_device rng;
|
std::random_device rng;
|
||||||
std::uniform_int_distribution<int> index_dist(L'A', L'Z');
|
std::uniform_int_distribution<int> index_dist('A', 'Z');
|
||||||
output_temp_filename = L".ifcopenshell.";
|
{
|
||||||
for (int i = 0; i < 8; ++i) {
|
std::string v = ".ifcopenshell.";
|
||||||
output_temp_filename.push_back(static_cast<wchar_t>(index_dist(rng)));
|
output_temp_filename += path_t(v.begin(), v.end());
|
||||||
|
}
|
||||||
|
for (int i = 0; i < 8; ++i) {
|
||||||
|
output_temp_filename.push_back(static_cast<path_t::value_type>(index_dist(rng)));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
std::string v = ".tmp.";
|
||||||
|
output_temp_filename += path_t(v.begin(), v.end());
|
||||||
}
|
}
|
||||||
output_temp_filename += L".tmp";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SerializerSettings settings;
|
SerializerSettings settings;
|
||||||
|
|||||||
Reference in New Issue
Block a user