From 6fd453224fc5fcf9953092d2883ab45417980f48 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 4 Jan 2015 16:43:04 +0000 Subject: help out clang Change-Id: I19bee6bfa1c499a295b007002c005d8c3f8ce12c --- sc/qa/unit/helper/qahelper.cxx | 6 ++++++ sc/qa/unit/helper/qahelper.hxx | 2 ++ 2 files changed, 8 insertions(+) diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx index 9713eac2a624..e0ade4cc2d7e 100644 --- a/sc/qa/unit/helper/qahelper.cxx +++ b/sc/qa/unit/helper/qahelper.cxx @@ -65,6 +65,12 @@ std::ostream& operator<<(std::ostream& rStrm, const Color& rColor) return rStrm; } +std::ostream& operator<<(std::ostream& rStrm, const OpCode& rCode) +{ + rStrm << static_cast(rCode); + return rStrm; +} + FileFormat aFileFormats[] = { { "ods" , "calc8", "", ODS_FORMAT_TYPE }, { "xls" , "MS Excel 97", "calc_MS_EXCEL_97", XLS_FORMAT_TYPE }, diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx index f204dba50cd3..8fbc156c8097 100644 --- a/sc/qa/unit/helper/qahelper.hxx +++ b/sc/qa/unit/helper/qahelper.hxx @@ -105,6 +105,8 @@ std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList); std::ostream& operator<<(std::ostream& rStrm, const Color& rColor); +std::ostream& operator<<(std::ostream& rStrm, const OpCode& rCode); + // Why is this here and not in osl, and using the already existing file // handling APIs? Do we really want to add arbitrary new file handling // wrappers here and there (and then having to handle the Android (and -- cgit