Skip to content

Commit

Permalink
Remove useless call VariantClear;
Browse files Browse the repository at this point in the history
git-svn-id: http://frl.googlecode.com/svn/trunk@141 daf5c975-553e-0410-8cda-3135a9dfd8f3
  • Loading branch information
gmist committed Nov 4, 2008
1 parent bdf7c4b commit 7281f87
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/os/win32/com/frl_os_win32_com_variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,11 @@ HRESULT Variant::variantCopy( VARIANT *dst, const VARIANT *src )
{
if( dst == NULL || src == NULL )
return E_FAIL;
::VariantClear( dst );
return ::VariantCopy( dst, (VARIANT*)src );
}

HRESULT Variant::variantCopy( VARIANT &dst, const VARIANT &src )
{
::VariantClear( &dst );
return ::VariantCopy( &dst, (VARIANT*)&src );
}

Expand Down

0 comments on commit 7281f87

Please sign in to comment.