summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-08-13 23:59:24 +0200
committerMichael Stahl <mstahl@redhat.com>2014-08-14 00:04:25 +0200
commit62f9179110482b97fa0ffe3218b3e9da9644292f (patch)
tree1dcae1812c0d61fad6a86ef0f080dceb711bf42f /sw
parent288d12ba9733443c96f92c42da26edaabd831b66 (diff)
spurious warning C4189 local variable initialized but not referenced
Change-Id: I67ac7757a05dfba5724f8f73856e0a23194adaf8
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/rtfsdrexport.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/rtfsdrexport.cxx b/sw/source/filter/ww8/rtfsdrexport.cxx
index d8706a2463b2..b32dae2fc3b8 100644
--- a/sw/source/filter/ww8/rtfsdrexport.cxx
+++ b/sw/source/filter/ww8/rtfsdrexport.cxx
@@ -451,8 +451,9 @@ void RtfSdrExport::impl_writeGraphic()
return;
}
OString aURLBS(OUStringToOString(sGraphicURL, RTL_TEXTENCODING_UTF8));
- const char aURLBegin[] = "vnd.sun.star.GraphicObject:";
- Graphic aGraphic = GraphicObject(aURLBS.copy(RTL_CONSTASCII_LENGTH(aURLBegin))).GetTransformedGraphic();
+ Graphic aGraphic = GraphicObject(
+ aURLBS.copy(RTL_CONSTASCII_LENGTH("vnd.sun.star.GraphicObject:")))
+ .GetTransformedGraphic();
// Export it to a stream.
SvMemoryStream aStream;