summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdview4.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-24 08:32:42 +0200
committerNoel Grandin <noel@peralex.com>2016-03-24 11:41:01 +0200
commitc09d0aa46ceaeb96869eae1a23a86040189472f4 (patch)
tree747da0f79cad58b31ddc04d57259e972f04dd22a /sd/source/ui/view/sdview4.cxx
parent0f543e38722f25a2969d500513167a3305097ed8 (diff)
loplugin:constantparam in sd
Change-Id: I1a7f4cab28a70c45e5232e1c44f6ca6f7b014bff
Diffstat (limited to 'sd/source/ui/view/sdview4.cxx')
-rw-r--r--sd/source/ui/view/sdview4.cxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index c13639fb8e16..d68de3a92830 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -296,21 +296,14 @@ void View::InsertMediaURL( const OUString& rMediaURL, sal_Int8& rAction,
#if HAVE_FEATURE_GLTF
void View::Insert3DModelURL(
const OUString& rModelURL, sal_Int8& rAction,
- const Point& rPos, const Size& rSize,
- bool const bLink )
+ const Point& rPos, const Size& rSize )
{
OUString sRealURL;
- if (bLink)
- {
- sRealURL = rModelURL;
- }
- else
- {
- uno::Reference<frame::XModel> const xModel(
+ uno::Reference<frame::XModel> const xModel(
GetDoc().GetObjectShell()->GetModel());
- bool const bRet = ::avmedia::Embed3DModel(xModel, rModelURL, sRealURL);
- if (!bRet) { return; }
- }
+ bool const bRet = ::avmedia::Embed3DModel(xModel, rModelURL, sRealURL);
+ if (!bRet)
+ return;
SdrMediaObj* pRetObject = InsertMediaObj( sRealURL, "model/vnd.gltf+json", rAction, rPos, rSize );
avmedia::MediaItem aItem = pRetObject->getMediaProperties();