Kaydet (Commit) 68d389c5 authored tarafından Daniel Vogelheim's avatar Daniel Vogelheim

- fixed warning when compiling txtimp.cxx and XMLPropertyBackpatcher

- fixed <:: into < ::
  (This was already in #ifdef MACOSX, but should be that way for all platforms.)
üst a341868c
#ifndef _XMLOFF_FUNCTIONAL_HXX
#define _XMLOFF_FUNCTIONAL_HXX
/** @#file
*
* re-implement STL functors as needed
*
* The standard comparison operators from the STL cause warnings with
* several compilers about our sal_Bool (=unsigned char) being
* converted to bool (C++ bool). We wish to avoid that.
*/
struct less_functor
{
bool operator()(const ::rtl::OUString& x,
const ::rtl::OUString& y) const
{
return 0 != (x<y);
}
};
#endif
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLPropertyBackpatcher.cxx,v $ * $RCSfile: XMLPropertyBackpatcher.cxx,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: dvo $ $Date: 2000-09-27 15:58:44 $ * last change: $Author: dvo $ $Date: 2000-09-28 18:27:13 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -251,4 +251,3 @@ void XMLPropertyBackpatcher<A>::SetDefault() ...@@ -251,4 +251,3 @@ void XMLPropertyBackpatcher<A>::SetDefault()
// force instantiation of templates // force instantiation of templates
template XMLPropertyBackpatcher<sal_Int16>; template XMLPropertyBackpatcher<sal_Int16>;
template XMLPropertyBackpatcher<OUString>; template XMLPropertyBackpatcher<OUString>;
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLPropertyBackpatcher.hxx,v $ * $RCSfile: XMLPropertyBackpatcher.hxx,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: dvo $ $Date: 2000-09-27 15:58:45 $ * last change: $Author: dvo $ $Date: 2000-09-28 18:27:14 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -71,6 +71,10 @@ ...@@ -71,6 +71,10 @@
#include <stl/vector> #include <stl/vector>
#endif #endif
#ifndef _XMLOFF_FUNCTIONAL_HXX
#include "functional.hxx"
#endif
namespace rtl { class OUString; } namespace rtl { class OUString; }
namespace com { namespace sun { namespace star { namespace com { namespace sun { namespace star {
...@@ -78,6 +82,7 @@ namespace com { namespace sun { namespace star { ...@@ -78,6 +82,7 @@ namespace com { namespace sun { namespace star {
namespace uno { template<class A> class Reference; } namespace uno { template<class A> class Reference; }
} } } } } }
/** This class maintains an OUString->sal_Int16 mapping for cases in /** This class maintains an OUString->sal_Int16 mapping for cases in
* which an XPropertySet needs to be filled with values that are not * which an XPropertySet needs to be filled with values that are not
* yet known. * yet known.
...@@ -132,10 +137,10 @@ class XMLPropertyBackpatcher ...@@ -132,10 +137,10 @@ class XMLPropertyBackpatcher
/// backpatch list for unresolved IDs /// backpatch list for unresolved IDs
//::std::map<const ::rtl::OUString, BackpatchListType*> aBackpatchListMap; //::std::map<const ::rtl::OUString, BackpatchListType*> aBackpatchListMap;
::std::map<const ::rtl::OUString, void* > aBackpatchListMap; ::std::map<const ::rtl::OUString, void*, less_functor> aBackpatchListMap;
/// mapping of names -> IDs /// mapping of names -> IDs
::std::map<const ::rtl::OUString, A> aIDMap; ::std::map<const ::rtl::OUString, A, less_functor> aIDMap;
public: public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment