-Werror,-Wunused-function

Change-Id: I100a95d5f84ab61cb26ac39d436cb9f2cb7246e5
This commit is contained in:
Stephan Bergmann 2012-07-17 08:27:02 +02:00
parent 73db878b17
commit 309402a822

View file

@ -60,40 +60,6 @@
#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
#include <drawinglayer/XShapeDumper.hxx>
namespace {
bool compareFiles( const rtl::OUString& aFileNameOne, const rtl::OUString& aFileNameTwo)
{
rtl::OString aOFileNameOne = rtl::OUStringToOString(aFileNameOne, RTL_TEXTENCODING_UTF8);
std::ifstream aFileOne(aOFileNameOne.getStr());
rtl::OString aOFileNameTwo = rtl::OUStringToOString(aFileNameTwo, RTL_TEXTENCODING_UTF8);
std::ifstream aFileTwo(aOFileNameTwo.getStr());
CPPUNIT_ASSERT_MESSAGE("files not open", aFileOne.is_open() && aFileTwo.is_open());
sal_Int32 nLine = 1;
while(!aFileOne.eof() && !aFileTwo.eof())
{
std::string aLineFileOne;
std::string aLineFileTwo;
std::getline(aFileOne, aLineFileOne);
std::getline(aFileTwo, aLineFileTwo);
if( aLineFileOne != aLineFileTwo)
{
rtl::OStringBuffer aErrorMessage("Mismatch between reference file and exported file in line ");
aErrorMessage.append(nLine).append(".\nExpected: ");
aErrorMessage.append(aLineFileOne.c_str()).append("\nFound : ").append(aLineFileTwo.c_str());
CPPUNIT_ASSERT_MESSAGE(aErrorMessage.getStr(), false);
}
nLine++;
}
return true;
}
}
/* Implementation of Filters test */
using namespace ::com::sun::star;