summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/oldprintadaptor.cxx2
-rw-r--r--vcl/source/gdi/print.cxx2
-rw-r--r--vcl/source/gdi/regband.cxx3
3 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/gdi/oldprintadaptor.cxx b/vcl/source/gdi/oldprintadaptor.cxx
index 93bc795e315a..f142fa46972c 100644
--- a/vcl/source/gdi/oldprintadaptor.cxx
+++ b/vcl/source/gdi/oldprintadaptor.cxx
@@ -46,7 +46,7 @@ namespace vcl
OldStylePrintAdaptor::OldStylePrintAdaptor( const VclPtr< Printer >& i_xPrinter )
: PrinterController( i_xPrinter )
- , mpData( new ImplOldStyleAdaptorData() )
+ , mpData( new ImplOldStyleAdaptorData )
{
}
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index d20345e30e5a..825f2cdff913 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -1497,7 +1497,7 @@ OUString Printer::GetPaperName( Paper ePaper )
ImplSVData* pSVData = ImplGetSVData();
if( ! pSVData->mpPaperNames )
{
- pSVData->mpPaperNames = new std::unordered_map< int, OUString >();
+ pSVData->mpPaperNames = new std::unordered_map< int, OUString >;
if( ImplGetResMgr() )
{
ResStringArray aPaperStrings( VclResId( RID_STR_PAPERNAMES ) );
diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx
index d59f5c81e922..21e3f9e4dba6 100644
--- a/vcl/source/gdi/regband.cxx
+++ b/vcl/source/gdi/regband.cxx
@@ -96,7 +96,8 @@ ImplRegionBand::ImplRegionBand(
ImplRegionBandPoint* pPrevPointCopy = nullptr;
while (pPoint != nullptr)
{
- ImplRegionBandPoint* pPointCopy = new ImplRegionBandPoint();
+ ImplRegionBandPoint* pPointCopy = new ImplRegionBandPoint;
+ pPointCopy->mpNextBandPoint = nullptr;
pPointCopy->mnX = pPoint->mnX;
pPointCopy->mnLineId = pPoint->mnLineId;
pPointCopy->mbEndPoint = pPoint->mbEndPoint;