[Libreoffice-commits] .: avmedia/source
Michael Stahl
mst at kemper.freedesktop.org
Tue Dec 6 03:28:49 PST 2011
avmedia/source/framework/mediaitem.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 73bf02cd523470a06793ccb37bee26ef96538941
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Dec 6 12:26:40 2011 +0100
mediaitem.cxx: unnecessary casting
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx
index 2ec4ae5..2dda7a9 100644
--- a/avmedia/source/framework/mediaitem.cxx
+++ b/avmedia/source/framework/mediaitem.cxx
@@ -413,11 +413,11 @@ lcl_CreateStream(uno::Reference<embed::XStorage> const& xStorage,
basename = rFilename.copy(0, nIndex);
suffix = rFilename.copy(nIndex);
}
- int count(0); // sigh... try to generate non-existent name
+ sal_Int32 count(0); // sigh... try to generate non-existent name
do
{
++count;
- filename = basename + ::rtl::OUString::valueOf(static_cast<sal_Int32>(count)) + suffix;
+ filename = basename + ::rtl::OUString::valueOf(count) + suffix;
}
while (xStorage->hasByName(filename));
}
More information about the Libreoffice-commits
mailing list