Skip to content

Commit a3ac910

Browse files
committed
update createGUID32
1 parent 95bca4b commit a3ac910

File tree

5 files changed

+1818
-2
lines changed

5 files changed

+1818
-2
lines changed

IfcPlusPlus/src/ifcpp/model/BuildingGuid.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU
2525
///@brief Creates a GUID string with 36 characters including dashes, for example: "F103000C-9865-44EE-BE6E-CCC780B81423"
2626
std::wstring createGUID32_wstr()
2727
{
28-
return string2wstring(createGUID32());
28+
std::string guid = createGUID32();
29+
std::wstring guid_wstr = string2wstring(guid);
30+
return guid_wstr;
2931
}
3032

3133
std::string createGUID32()
@@ -50,7 +52,7 @@ std::string createGUID32()
5052
uuid_strs << "-";
5153
for (i = 0; i < 12; i++){uuid_strs << dis(gen);}
5254
std::string str = uuid_strs.str();
53-
return uuid_strs.str();
55+
return str;
5456
}
5557

5658
static const char base16mask[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, \

0 commit comments

Comments
 (0)