Kaydet (Commit) de69091d authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Delete PoHeader constructor used by renewpo

Change-Id: I360a9c96eacf9b7b8bd80214a3fc4c9faa01e631
üst 8885dc27
......@@ -90,7 +90,6 @@ public:
friend class PoIfstream;
PoHeader( const OString& rExtSrc );
PoHeader( std::ifstream& rOldPo );
~PoHeader();
};
......
......@@ -619,16 +619,6 @@ namespace
strftime( pBuff, sizeof pBuff, "%Y-%m-%d %H:%M%z", pNow );
return pBuff;
}
static OString lcl_ReplaceAttribute(
const OString& rSource, const OString& rOld, const OString& rNew )
{
const sal_Int32 nFirstIndex =
rSource.indexOf( rOld ) + rOld.getLength()+2;
const sal_Int32 nCount =
rSource.indexOf( "\n", nFirstIndex ) - nFirstIndex;
return rSource.replaceFirst( rSource.copy(nFirstIndex, nCount), rNew );
}
}
//Template Constructor
......@@ -653,32 +643,6 @@ PoHeader::PoHeader( const OString& rExtSrc )
m_bIsInitialized = true;
}
//Constructor for old headers to renew po files
PoHeader::PoHeader( std::ifstream& rOldPo )
: m_pGenPo( new GenPoEntry() )
, m_bIsInitialized( false )
{
assert( rOldPo.is_open() );
m_pGenPo->readFromFile( rOldPo );
const OString sExtractCom = m_pGenPo->getExtractCom();
m_pGenPo->setExtractCom(
sExtractCom.copy( 0, sExtractCom.getLength() - 3 ) );
OString sMsgStr = m_pGenPo->getMsgStr();
sMsgStr =
lcl_ReplaceAttribute( sMsgStr, "Report-Msgid-Bugs-To",
"https://bugs.freedesktop.org/enter_bug.cgi?product="
"LibreOffice&bug_status=UNCONFIRMED&component=UI" );
sMsgStr =
lcl_ReplaceAttribute( sMsgStr, "X-Generator", "LibreOffice" );
sMsgStr =
lcl_ReplaceAttribute( sMsgStr, "X-Accelerator-Marker", "~" );
m_pGenPo->setMsgStr( sMsgStr );
m_bIsInitialized = true;
}
PoHeader::~PoHeader()
{
delete m_pGenPo;
......
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