summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorSebastian Wüst <sebi@timewaster.de>2013-10-28 17:23:42 +0000
committerSebastian Wüst <sebi@timewaster.de>2013-10-28 17:23:42 +0000
commitc6ad2a34d38795059888d3c900dbf1047bfd5fdd (patch)
tree88de58a63003bd2ea6edda9c895d3c0466a38e6b /src/sp-object.cpp
parenttext change (diff)
parentFix for bug #1156394 (OCAL dialog: Close button in German localization contai... (diff)
downloadinkscape-c6ad2a34d38795059888d3c900dbf1047bfd5fdd.tar.gz
inkscape-c6ad2a34d38795059888d3c900dbf1047bfd5fdd.zip
mrege from trunk
(bzr r12417.1.31)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index 8c54caf48..4a32c9470 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -151,11 +151,11 @@ void SPObject::read_content() {
//throw;
}
-void SPObject::update(SPCtx* ctx, unsigned int flags) {
+void SPObject::update(SPCtx* /*ctx*/, unsigned int /*flags*/) {
//throw;
}
-void SPObject::modified(unsigned int flags) {
+void SPObject::modified(unsigned int /*flags*/) {
//throw;
}
@@ -228,7 +228,7 @@ SPObject *sp_object_unref(SPObject *object, SPObject *owner)
//g_object_unref(G_OBJECT(object));
object->refCount--;
- if (object->refCount < 0) {
+ if (object->refCount <= 0) {
delete object;
}
@@ -624,7 +624,7 @@ void SPObject::remove_child(Inkscape::XML::Node* child) {
}
}
-void SPObject::order_changed(Inkscape::XML::Node *child, Inkscape::XML::Node * old_ref, Inkscape::XML::Node *new_ref) {
+void SPObject::order_changed(Inkscape::XML::Node *child, Inkscape::XML::Node * /*old_ref*/, Inkscape::XML::Node *new_ref) {
SPObject* object = this;
SPObject *ochild = object->get_child_by_repr(child);
@@ -648,11 +648,6 @@ void SPObject::build(SPDocument *document, Inkscape::XML::Node *repr) {
try {
const std::string typeString = NodeTraits::get_type_string(*rchild);
- // special cases
- if (typeString.empty()) continue; // comments, usually
- if (typeString == "rdf:RDF") continue; // no SP node yet
- if (typeString == "inkscape:clipboard") continue; // SP node not necessary
-
SPObject* child = SPFactory::instance().createObject(typeString);
object->attach(child, object->lastChild());
@@ -663,7 +658,7 @@ void SPObject::build(SPDocument *document, Inkscape::XML::Node *repr) {
// corresponding classes in the SPObject tree.
// (rdf:RDF, inkscape:clipboard, ...)
// Thus, simply ignore this case for now.
- return;
+ continue;
}
}
}