summaryrefslogtreecommitdiff
path: root/l10ntools/source/po.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:18:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:30 +0100
commitaf9c3fa41ba16ae4dc5e7ccbf626c8701ae0aa19 (patch)
tree3da945e18a31540e01cb9242754204e8740125cd /l10ntools/source/po.cxx
parent8980565881fcc484bb506b3135223b6a42aefbf0 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I87dbff06345f24064b87c375e5381cb27118e614
Diffstat (limited to 'l10ntools/source/po.cxx')
-rw-r--r--l10ntools/source/po.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index 5dfa0b7a5f45..00f7d8270414 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -164,7 +164,7 @@ void GenPoEntry::writeToFile(std::ofstream& rOFStream) const
void GenPoEntry::readFromFile(std::ifstream& rIFStream)
{
*this = GenPoEntry();
- OString* pLastMsg = 0;
+ OString* pLastMsg = nullptr;
std::string sTemp;
getline(rIFStream,sTemp);
if( rIFStream.eof() || sTemp.empty() )
@@ -274,7 +274,7 @@ PoEntry::~PoEntry()
}
PoEntry::PoEntry( const PoEntry& rPo )
- : m_pGenPo( rPo.m_pGenPo ? new GenPoEntry( *(rPo.m_pGenPo) ) : 0 )
+ : m_pGenPo( rPo.m_pGenPo ? new GenPoEntry( *(rPo.m_pGenPo) ) : nullptr )
, m_bIsInitialized( rPo.m_bIsInitialized )
{
}
@@ -408,7 +408,7 @@ namespace
// Get actual time in "YEAR-MO-DA HO:MI+ZONE" form
static OString lcl_GetTime()
{
- time_t aNow = time(NULL);
+ time_t aNow = time(nullptr);
struct tm* pNow = localtime(&aNow);
char pBuff[50];
strftime( pBuff, sizeof pBuff, "%Y-%m-%d %H:%M%z", pNow );