diff options
author | Zdibák Zoltán <zdibakzoltan@gmail.com> | 2018-11-10 22:09:50 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-11-11 09:18:41 +0100 |
commit | e219d868fda704f58f6a980c29b8827cde87ea65 (patch) | |
tree | beff3d0d087e9d973685f38476137b271c80c8ab /desktop | |
parent | 770cfd0107d0926eeaa1899a5854df1fe8c7a032 (diff) |
cppCheck redundantAssignment variable pClone
Change-Id: If2e1643a507f13e7da733896b1115ef39b512f00
Reviewed-on: https://gerrit.libreoffice.org/63252
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/lokandroid.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop/source/lib/lokandroid.cxx b/desktop/source/lib/lokandroid.cxx index d22c2585eb68..e800c82b0706 100644 --- a/desktop/source/lib/lokandroid.cxx +++ b/desktop/source/lib/lokandroid.cxx @@ -38,10 +38,8 @@ T* getHandle(JNIEnv* pEnv, jobject aObject) const char* copyJavaString(JNIEnv* pEnv, jstring aJavaString) { - const char* pClone = NULL; - const char* pTemp = pEnv->GetStringUTFChars(aJavaString, NULL); - pClone = strdup(pTemp); + const char* pClone = strdup(pTemp); pEnv->ReleaseStringUTFChars(aJavaString, pTemp); return pClone; |