summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/inc/salprn.hxx2
-rw-r--r--vcl/win/source/gdi/salprn.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/salprn.hxx b/vcl/inc/salprn.hxx
index 195bc80698f4..0164acf8c108 100644
--- a/vcl/inc/salprn.hxx
+++ b/vcl/inc/salprn.hxx
@@ -54,7 +54,7 @@ struct VCL_PLUGIN_PUBLIC SalPrinterQueueInfo
rtl::OUString maComment;
sal_uLong mnStatus;
sal_uLong mnJobs;
- void* mpSysData;
+ rtl::OUString* mpSysData;
SalPrinterQueueInfo();
~SalPrinterQueueInfo();
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index 7a7c9837aa72..5f58cb7c6bfb 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -236,7 +236,7 @@ void WinSalInstance::GetPrinterQueueState( SalPrinterQueueInfo* pInfo )
pInfo->mnStatus = ImplWinQueueStatusToSal( pWinInfo2->Status );
pInfo->mnJobs = pWinInfo2->cJobs;
if( ! pInfo->mpSysData )
- pInfo->mpSysData = new XubString( aPortName );
+ pInfo->mpSysData = new rtl::OUString(aPortName);
}
rtl_freeMemory(pWinInfo2);
}
@@ -248,7 +248,7 @@ void WinSalInstance::GetPrinterQueueState( SalPrinterQueueInfo* pInfo )
void WinSalInstance::DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo )
{
- delete (String*)(pInfo->mpSysData);
+ delete pInfo->mpSysData;
delete pInfo;
}