Fix uninitialized local variable warning
This commit is contained in:
parent
2ba32d8aca
commit
b94e591006
@ -208,7 +208,7 @@ namespace nana{ namespace system{
|
|||||||
memcpy(addr, buf, size);
|
memcpy(addr, buf, size);
|
||||||
::GlobalUnlock(g);
|
::GlobalUnlock(g);
|
||||||
|
|
||||||
unsigned data_format;
|
unsigned data_format = CF_MAX;
|
||||||
switch(fmt)
|
switch(fmt)
|
||||||
{
|
{
|
||||||
case format::text: data_format = CF_UNICODETEXT; break;
|
case format::text: data_format = CF_UNICODETEXT; break;
|
||||||
@ -244,7 +244,7 @@ namespace nana{ namespace system{
|
|||||||
#if defined(NANA_WINDOWS)
|
#if defined(NANA_WINDOWS)
|
||||||
if(::OpenClipboard(::GetFocus()))
|
if(::OpenClipboard(::GetFocus()))
|
||||||
{
|
{
|
||||||
unsigned data_format;
|
unsigned data_format = CF_MAX;
|
||||||
switch(fmt)
|
switch(fmt)
|
||||||
{
|
{
|
||||||
case format::text: data_format = CF_UNICODETEXT; break;
|
case format::text: data_format = CF_UNICODETEXT; break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user