diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-11-20 22:01:05 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-11-20 22:03:30 +0100 |
commit | 7ad55015326edc0c9d21c446cdb9cff9ea12cc4c (patch) | |
tree | 34544d9b4e61f056273ff8b14b01d65323205824 /l10ntools | |
parent | ca00713a613f3f5babf83707838fdbecfffd88a7 (diff) |
work around ambiguity with msvc and old gcc
C:/cygwin/home/tinderbox/master-build/l10ntools/source/po.cxx(188) : error C2666: 'std::fpos<_Statetype>::operator !=' : 2 overloads have similar conversions
with
[
_Statetype=_Mbstatet
]
C:/PROGRA~2/MICROS~1.0/VC/include\iosfwd(116): could be 'bool std::fpos<_Statetype>::operator !=(const std::fpos<_Statetype> &) const'
with
[
_Statetype=_Mbstatet
]
or 'built-in C++ operator!=(std::streamoff, long)'
while trying to match the argument list '(std::fpos<_Statetype>, long)'
with
[
_Statetype=_Mbstatet
]
Change-Id: Id1375d68996414c5ccf75d5d3ebc0afad061e3d2
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/po.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index 6ce50188a830..8ee7dc9c388d 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -185,7 +185,7 @@ void GenPoEntry::setFuzzy(const bool bFuzzy) //Write to file void GenPoEntry::writeToFile(std::ofstream& rOFStream) const { - if ( rOFStream.tellp() != 0 ) + if ( rOFStream.tellp() != std::ofstream::pos_type( 0 )) rOFStream << std::endl; if ( !m_sExtractCom.isEmpty() ) rOFStream |