File tree 5 files changed +10
-10
lines changed
dcmimage/include/dcmtk/dcmimage
dcmimgle/include/dcmtk/dcmimgle
5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
*
3
- * Copyright (C) 1996-2016 , OFFIS e.V.
3
+ * Copyright (C) 1996-2025 , OFFIS e.V.
4
4
* All rights reserved. See COPYRIGHT file for details.
5
5
*
6
6
* This software and supporting documentation were developed by
@@ -88,7 +88,7 @@ class DiColorMonoTemplate
88
88
{
89
89
if (pixel != NULL )
90
90
{
91
- this ->Data = new T[this ->Count ];
91
+ this ->Data = new (std::nothrow) T[this ->Count ];
92
92
if (this ->Data != NULL )
93
93
{
94
94
const T *r = pixel[0 ];
Original file line number Diff line number Diff line change 1
1
/*
2
2
*
3
- * Copyright (C) 1996-2010 , OFFIS e.V.
3
+ * Copyright (C) 1996-2025 , OFFIS e.V.
4
4
* All rights reserved. See COPYRIGHT file for details.
5
5
*
6
6
* This software and supporting documentation were developed by
@@ -82,7 +82,7 @@ class DiMonoCopyTemplate
82
82
{
83
83
if (pixel != NULL )
84
84
{
85
- this ->Data = new T[this ->getCount ()];
85
+ this ->Data = new (std::nothrow) T[this ->getCount ()];
86
86
if (this ->Data != NULL )
87
87
OFBitmanipTemplate<T>::copyMem (pixel, this ->Data , this ->getCount ());
88
88
}
Original file line number Diff line number Diff line change 1
1
/*
2
2
*
3
- * Copyright (C) 1996-2011 , OFFIS e.V.
3
+ * Copyright (C) 1996-2025 , OFFIS e.V.
4
4
* All rights reserved. See COPYRIGHT file for details.
5
5
*
6
6
* This software and supporting documentation were developed by
@@ -95,7 +95,7 @@ class DiMonoFlipTemplate
95
95
{
96
96
if (pixel != NULL )
97
97
{
98
- this ->Data = new T[this ->getCount ()];
98
+ this ->Data = new (std::nothrow) T[this ->getCount ()];
99
99
if (this ->Data != NULL )
100
100
{
101
101
if (horz && vert)
Original file line number Diff line number Diff line change 1
1
/*
2
2
*
3
- * Copyright (C) 1996-2011 , OFFIS e.V.
3
+ * Copyright (C) 1996-2025 , OFFIS e.V.
4
4
* All rights reserved. See COPYRIGHT file for details.
5
5
*
6
6
* This software and supporting documentation were developed by
@@ -94,7 +94,7 @@ class DiMonoRotateTemplate
94
94
{
95
95
if (pixel != NULL )
96
96
{
97
- this ->Data = new T[DiMonoPixelTemplate<T>::getCount ()];
97
+ this ->Data = new (std::nothrow) T[DiMonoPixelTemplate<T>::getCount ()];
98
98
if (this ->Data != NULL )
99
99
{
100
100
if (degree == 90 )
Original file line number Diff line number Diff line change 1
1
/*
2
2
*
3
- * Copyright (C) 1996-2011 , OFFIS e.V.
3
+ * Copyright (C) 1996-2025 , OFFIS e.V.
4
4
* All rights reserved. See COPYRIGHT file for details.
5
5
*
6
6
* This software and supporting documentation were developed by
@@ -112,7 +112,7 @@ class DiMonoScaleTemplate
112
112
{
113
113
if (pixel != NULL )
114
114
{
115
- this ->Data = new T[this ->getCount ()];
115
+ this ->Data = new (std::nothrow) T[this ->getCount ()];
116
116
if (this ->Data != NULL )
117
117
{
118
118
const T value = OFstatic_cast (T, OFstatic_cast (double , DicomImageClass::maxval (bits)) *
You can’t perform that action at this time.
0 commit comments