summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-05-03 15:19:25 +0200
committerDavid Tardon <dtardon@redhat.com>2013-05-03 15:19:33 +0200
commit2f2e4d88db426e3b09c8f4cf6bb8dd6bc5f349e4 (patch)
tree681014f7350b07dba58121d0aace67d1722c7ca4 /xmloff
parent4f4f450eaf9dad85d28fcd58b01c0f51ff0bd5ef (diff)
add a warning
Change-Id: I0baf90cfe8d3caa96f826695c1be4bc563864c00
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx b/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx
index 4b2b9db6f141..bbbc87456a07 100644
--- a/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx
+++ b/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx
@@ -33,6 +33,14 @@ UnoInterfaceToUniqueIdentifierMapper::UnoInterfaceToUniqueIdentifierMapper()
{
}
+UnoInterfaceToUniqueIdentifierMapper::~UnoInterfaceToUniqueIdentifierMapper()
+{
+ SAL_WARN_IF( !maReserved.empty(), "xmloff",
+ "there are " << maReserved.size()
+ << " ids left. This means a data loss: some connection(s) to shape(s) are missing."
+ );
+}
+
/** returns a unique identifier for the given uno object. IF a uno object is
registered more than once, the returned identifier is always the same.
*/