From 01780b23f1226a11adde4609127b75213cb3b7c1 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sat, 2 May 2015 23:54:12 -0700 Subject: [PATCH] Fix a missing plUUID function in *nix. --- Sources/Plasma/NucleusLib/pnUUID/pnUUID_Unix.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/NucleusLib/pnUUID/pnUUID_Unix.cpp b/Sources/Plasma/NucleusLib/pnUUID/pnUUID_Unix.cpp index 565fbc51..4860c50d 100644 --- a/Sources/Plasma/NucleusLib/pnUUID/pnUUID_Unix.cpp +++ b/Sources/Plasma/NucleusLib/pnUUID/pnUUID_Unix.cpp @@ -78,9 +78,14 @@ bool plUUID::IsNull() const return ( uuid_is_null( g )!=0 ); } -void plUUID::CopyFrom( const plUUID * v ) +void plUUID::CopyFrom(const plUUID* v) { - memcpy( (void*)fData, (const void*)v->fData, sizeof(fData) ); + memcpy((void*)fData, (const void*)v->fData, sizeof(fData)); +} + +void plUUID::CopyFrom(const plUUID& v) +{ + memcpy((void*)fData, (const void*)v.fData, sizeof(fData)); } int plUUID::CompareTo( const plUUID * v ) const