summaryrefslogtreecommitdiff
path: root/vcl/source/filter/ipcd/ipcd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/filter/ipcd/ipcd.cxx')
-rw-r--r--vcl/source/filter/ipcd/ipcd.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/filter/ipcd/ipcd.cxx b/vcl/source/filter/ipcd/ipcd.cxx
index 5072e2ab4354..10c4abc30549 100644
--- a/vcl/source/filter/ipcd/ipcd.cxx
+++ b/vcl/source/filter/ipcd/ipcd.cxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <string_view>
#include <vcl/graph.hxx>
#include <vcl/BitmapTools.hxx>
@@ -167,7 +170,7 @@ void PCDReader::CheckPCDImagePacFile()
m_rPCD.Seek( 2048 );
m_rPCD.ReadBytes(Buf, 7);
Buf[ 7 ] = 0;
- if (OString(Buf) != "PCD_IPI")
+ if (Buf != std::string_view("PCD_IPI"))
bStatus = false;
}