summaryrefslogtreecommitdiffstats
path: root/src/object
diff options
context:
space:
mode:
Diffstat (limited to 'src/object')
-rw-r--r--src/object/filters/sp-filter-primitive.cpp2
-rw-r--r--src/object/sp-paint-server.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/object/filters/sp-filter-primitive.cpp b/src/object/filters/sp-filter-primitive.cpp
index 8ed14ff3c..d896da571 100644
--- a/src/object/filters/sp-filter-primitive.cpp
+++ b/src/object/filters/sp-filter-primitive.cpp
@@ -170,7 +170,7 @@ Inkscape::XML::Node* SPFilterPrimitive::write(Inkscape::XML::Document *doc, Inks
int SPFilterPrimitive::read_in(gchar const *name)
{
- if (!name || !this){
+ if (!name){
return Inkscape::Filters::NR_FILTER_SLOT_NOT_SET;
}
// TODO: are these case sensitive or not? (assumed yes)
diff --git a/src/object/sp-paint-server.cpp b/src/object/sp-paint-server.cpp
index 286360efb..1ec4db841 100644
--- a/src/object/sp-paint-server.cpp
+++ b/src/object/sp-paint-server.cpp
@@ -38,9 +38,7 @@ SPPaintServer::~SPPaintServer() = default;
bool SPPaintServer::isSwatch() const
{
- if( this ) // Protect against assumption that "vector" always exists.
- return swatch;
- return( false );
+ return swatch;
}