summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-19 08:12:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-19 10:02:39 +0200
commit2c1b7e8d6a7fa22cb91919238418816671c3a497 (patch)
tree6f356017d24dffcd25261295ab25a21b738dc835 /hwpfilter
parentad18bb24d51e4f735085d50c496d28bd637dbb0b (diff)
clang-tidy readability-container-size-empty
Change-Id: I1df70b7dff5ebb6048f7fc618789faa15ca5d422 Reviewed-on: https://gerrit.libreoffice.org/61967 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpreader.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index 9e427591cd3c..3b3ecefa90cd 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -2908,7 +2908,7 @@ void HwpReader::make_text_p3(HWPPara * para,bool bParaStart)
{
if( para->hhstr[n]->hh == CH_END_PARA )
{
- if (str.size() > 0)
+ if (!str.empty())
{
if( !pstart ){ STARTP;}
if( !tstart ){ STARTT;}
@@ -2998,7 +2998,7 @@ void HwpReader::make_text_p3(HWPPara * para,bool bParaStart)
break;
case CH_TAB: // 9
if( !pstart ) {STARTP;}
- if (str.size() > 0)
+ if (!str.empty())
{
if( !tstart ) {STARTT;}
makeChars(str);
@@ -3019,7 +3019,7 @@ void HwpReader::make_text_p3(HWPPara * para,bool bParaStart)
else
{
if( !pstart ) {STARTP;}
- if (str.size() > 0)
+ if (!str.empty())
{
if( !tstart ) {STARTT;}
makeChars(str);
@@ -3052,7 +3052,7 @@ void HwpReader::make_text_p3(HWPPara * para,bool bParaStart)
else
{
if( !pstart ) {STARTP;}
- if (str.size() > 0)
+ if (!str.empty())
{
if( !tstart ) {STARTT;}
makeChars(str);
@@ -3064,7 +3064,7 @@ void HwpReader::make_text_p3(HWPPara * para,bool bParaStart)
}
case CH_LINE: // 14
{
- if (str.size() > 0)
+ if (!str.empty())
{
if( !pstart ) {STARTP;}
if( !tstart ) {STARTT;}
@@ -3731,7 +3731,7 @@ void HwpReader::makeHyperText(TxtBox * hbox)
reinterpret_cast<uchar const *>(urltounix(reinterpret_cast<char *>(hypert->filename)).c_str())).c_str());
#endif
padd("xlink:type", sXML_CDATA, "simple");
- if (tmp.size() > 0 && strcmp(tmp.c_str(), "[HTML]")) {
+ if (!tmp.empty() && strcmp(tmp.c_str(), "[HTML]")) {
::std::string tmp3(tmp2);
tmp3.push_back('#');
tmp3.append(tmp);