diff options
Diffstat (limited to 'writerperfect/source/common')
-rw-r--r-- | writerperfect/source/common/DocumentHandler.cxx | 1 | ||||
-rw-r--r-- | writerperfect/source/common/WPXSvStream.cxx | 5 | ||||
-rw-r--r-- | writerperfect/source/common/WriterPerfectDebug.hxx | 24 |
3 files changed, 2 insertions, 28 deletions
diff --git a/writerperfect/source/common/DocumentHandler.cxx b/writerperfect/source/common/DocumentHandler.cxx index eae820b705e8..4fd98da571f5 100644 --- a/writerperfect/source/common/DocumentHandler.cxx +++ b/writerperfect/source/common/DocumentHandler.cxx @@ -7,7 +7,6 @@ * For further information visit http://libwpd.sourceforge.net */ #include "DocumentHandler.hxx" -#include "WriterPerfectDebug.hxx" #include <string.h> #include <com/sun/star/xml/sax/XDocumentHandler.hpp> diff --git a/writerperfect/source/common/WPXSvStream.cxx b/writerperfect/source/common/WPXSvStream.cxx index fca2364fb413..a79ac6ce504c 100644 --- a/writerperfect/source/common/WPXSvStream.cxx +++ b/writerperfect/source/common/WPXSvStream.cxx @@ -8,7 +8,6 @@ */ #include "WPXSvStream.hxx" -#include "WriterPerfectDebug.hxx" #include <tools/stream.hxx> #include <unotools/streamwrap.hxx> #include <unotools/ucbstreamhelper.hxx> @@ -85,7 +84,7 @@ WPXSvInputStreamImpl::WPXSvInputStreamImpl( Reference< XInputStream > xStream ) } catch ( ... ) { - WRITER_DEBUG_MSG(("mnLength = mxSeekable->getLength() threw exception\n")); + SAL_WARN("writerperfect", "mnLength = mxSeekable->getLength() threw exception"); mnLength = 0; } } @@ -161,7 +160,7 @@ int WPXSvInputStreamImpl::seek(long offset, WPX_SEEK_TYPE seekType) } catch (...) { - WRITER_DEBUG_MSG(("mxSeekable->seek(offset) threw exception\n")); + SAL_WARN("writerperfect", "mxSeekable->seek(offset) threw exception"); return -1; } } diff --git a/writerperfect/source/common/WriterPerfectDebug.hxx b/writerperfect/source/common/WriterPerfectDebug.hxx deleted file mode 100644 index da363eb087fb..000000000000 --- a/writerperfect/source/common/WriterPerfectDebug.hxx +++ /dev/null @@ -1,24 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* WriterPerfectDebug: Debugging information - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * For further information visit http://libwpd.sourceforge.net - */ -#ifndef __FILTERINTERNAL_HXX__ -#define __FILTERINTERNAL_HXX__ - -#include <string.h> // for strcmp - -#ifdef DEBUG -#include <stdio.h> -#define WRITER_DEBUG_MSG(M) printf M -#else -#define WRITER_DEBUG_MSG(M) -#endif - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |