From 0860d2bca15536e1277a136c8d1390c5fa3bd271 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Mon, 26 Nov 2012 16:17:51 -0600 Subject: String => OUString conversion of svl's PasswordHelper Change-Id: I7e107c37c43a8c9d868b579a2c389de558594a77 --- svl/inc/svl/PasswordHelper.hxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'svl/inc') diff --git a/svl/inc/svl/PasswordHelper.hxx b/svl/inc/svl/PasswordHelper.hxx index ea00ba65094a..7204ebdc845b 100644 --- a/svl/inc/svl/PasswordHelper.hxx +++ b/svl/inc/svl/PasswordHelper.hxx @@ -24,23 +24,21 @@ #include "sal/types.h" #include "com/sun/star/uno/Sequence.hxx" -class String; - class SvPasswordHelper { - static void GetHashPasswordLittleEndian(com::sun::star::uno::Sequence& rPassHash, const String& sPass); - static void GetHashPasswordBigEndian(com::sun::star::uno::Sequence& rPassHash, const String& sPass); + static void GetHashPasswordLittleEndian(com::sun::star::uno::Sequence& rPassHash, const OUString& sPass); + static void GetHashPasswordBigEndian(com::sun::star::uno::Sequence& rPassHash, const OUString& sPass); public: SVL_DLLPUBLIC static void GetHashPassword(com::sun::star::uno::Sequence & rPassHash, const sal_Char* pPass, sal_uInt32 nLen); - SVL_DLLPUBLIC static void GetHashPassword(com::sun::star::uno::Sequence& rPassHash, const String& sPass); + SVL_DLLPUBLIC static void GetHashPassword(com::sun::star::uno::Sequence& rPassHash, const OUString& sPass); /** Use this method to compare a given string with another given Hash value. This is necessary, because in older versions exists different hashs of the same string. They were endian dependent. We need this to handle old files. This method will compare against big and little endian. See #101326# */ - SVL_DLLPUBLIC static bool CompareHashPassword(const com::sun::star::uno::Sequence& rOldPassHash, const String& sNewPass); + SVL_DLLPUBLIC static bool CompareHashPassword(const com::sun::star::uno::Sequence& rOldPassHash, const OUString& sNewPass); }; #endif -- cgit