summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hstyle.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:16:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:27 +0100
commitc3dcdeb1d2bccc3785e3675843a5228e183b307f (patch)
tree857f6a942ba3b535be2baa1b43c5e5bb834aaff5 /hwpfilter/source/hstyle.cxx
parent2df257e95e655de7b0f888b033a56cd800d3002e (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Idec97093ca48c14b825c7b87ec050cc99aadc526
Diffstat (limited to 'hwpfilter/source/hstyle.cxx')
-rw-r--r--hwpfilter/source/hstyle.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx
index ccd75e704641..cc7734cec83d 100644
--- a/hwpfilter/source/hstyle.cxx
+++ b/hwpfilter/source/hstyle.cxx
@@ -42,7 +42,7 @@ static char buffer[MAXSTYLENAME + 1];
HWPStyle::HWPStyle()
{
nstyles = 0;
- style = 0;
+ style = nullptr;
}
@@ -58,7 +58,7 @@ HWPStyle::~HWPStyle()
char *HWPStyle::GetName(int n) const
{
if (!(n >= 0 && n < nstyles))
- return 0;
+ return nullptr;
return DATA[n].name;
}
@@ -78,7 +78,7 @@ void HWPStyle::SetName(int n, char *name)
CharShape *HWPStyle::GetCharShape(int n) const
{
if (!(n >= 0 && n < nstyles))
- return 0;
+ return nullptr;
return &DATA[n].cshape;
}
@@ -98,7 +98,7 @@ void HWPStyle::SetCharShape(int n, CharShape * cshapep)
ParaShape *HWPStyle::GetParaShape(int n) const
{
if (!(n >= 0 && n < nstyles))
- return 0;
+ return nullptr;
return &DATA[n].pshape;
}