Permalink
Browse files

Fix return of bool when pointer is expected (clang found this)

git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/trunk@31070 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
  • Loading branch information...
1 parent 18934d6 commit 1b2605d446e80670f549e9ca10c2085e5ee23635 hub committed May 9, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 plugins/collab/core/session/xp/AbiCollab_Export.cpp
  2. +2 −2 src/wp/impexp/xp/ie_exp.cpp
@@ -84,7 +84,7 @@ PLListenerType ABI_Collab_Export::getType() const
*/
ChangeRecordSessionPacket* ABI_Collab_Export::_buildPacket( const PX_ChangeRecord * pcr )
{
- UT_return_val_if_fail(pcr, false);
+ UT_return_val_if_fail(pcr, NULL);
UT_sint32 index = static_cast<UT_sint32>(pcr->getIndexAP());
switch(pcr->getType()) {
@@ -221,8 +221,8 @@ GsfOutput* IE_Exp::_openFile(const char *szFilename)
GsfOutput* IE_Exp::openFile(const char * szFilename)
{
- UT_return_val_if_fail(!m_fp, false);
- UT_return_val_if_fail(szFilename, false);
+ UT_return_val_if_fail(!m_fp, NULL);
+ UT_return_val_if_fail(szFilename, NULL);
g_free(m_szFileName);
m_szFileName = g_new(char, strlen(szFilename) + 1);

0 comments on commit 1b2605d

Please sign in to comment.