diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-04-27 22:22:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-29 15:37:08 +0200 |
commit | 795d56dfd55a78a240cef79c822ba958c4f18006 (patch) | |
tree | f1cb255ad87f0368d59705ba286052e6e63d7487 | |
parent | 4946e3b33d8d217f4f5be2af8a54b9a89ef1a732 (diff) |
[API-CHANGE] Add persistent (in addition to persistant)
+ keep "persistant" for compatibility reasons
but put it as deprecated
Change-Id: I7ef8efb9f376eadfdac876d142840aab5a0b4416
Reviewed-on: https://gerrit.libreoffice.org/37042
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r-- | dtrans/source/win32/clipb/WinClipbImpl.cxx | 4 | ||||
-rw-r--r-- | include/filter/msfilter/escherex.hxx | 2 | ||||
-rw-r--r-- | offapi/com/sun/star/datatransfer/clipboard/RenderingCapabilities.idl | 3 | ||||
-rw-r--r-- | offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl | 2 | ||||
-rw-r--r-- | offapi/type_reference/offapi.idl | 3 | ||||
-rw-r--r-- | sd/source/filter/eppt/eppt.cxx | 2 |
6 files changed, 10 insertions, 6 deletions
diff --git a/dtrans/source/win32/clipb/WinClipbImpl.cxx b/dtrans/source/win32/clipb/WinClipbImpl.cxx index 548a7ff4c5aa..f10050b20817 100644 --- a/dtrans/source/win32/clipb/WinClipbImpl.cxx +++ b/dtrans/source/win32/clipb/WinClipbImpl.cxx @@ -138,7 +138,9 @@ OUString SAL_CALL CWinClipbImpl::getName( ) sal_Int8 SAL_CALL CWinClipbImpl::getRenderingCapabilities( ) { - return ( Delayed | Persistant ); + // Errant spelling "Persistant" deprecated in version 5.4 + // see offapi/com/sun/star/datatransfer/clipboard/RenderingCapabilities.idl + return ( Delayed | Persistant | Persistent ); } void SAL_CALL CWinClipbImpl::flushClipboard( ) diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx index 4486ceb34e58..f25a961b7bc3 100644 --- a/include/filter/msfilter/escherex.hxx +++ b/include/filter/msfilter/escherex.hxx @@ -1090,7 +1090,7 @@ public: */ void InsertAtCurrentPos( sal_uInt32 nBytes ); - void InsertPersistOffset( sal_uInt32 nKey, sal_uInt32 nOffset ); // It is not being checked if this key is already in the PersistantTable + void InsertPersistOffset( sal_uInt32 nKey, sal_uInt32 nOffset ); // It is not being checked if this key is already in the PersistentTable void ReplacePersistOffset( sal_uInt32 nKey, sal_uInt32 nOffset ); sal_uInt32 GetPersistOffset( sal_uInt32 nKey ); bool SeekToPersistOffset( sal_uInt32 nKey ); diff --git a/offapi/com/sun/star/datatransfer/clipboard/RenderingCapabilities.idl b/offapi/com/sun/star/datatransfer/clipboard/RenderingCapabilities.idl index 6b0cdc96c230..f46bd2ff5d31 100644 --- a/offapi/com/sun/star/datatransfer/clipboard/RenderingCapabilities.idl +++ b/offapi/com/sun/star/datatransfer/clipboard/RenderingCapabilities.idl @@ -37,7 +37,8 @@ published constants RenderingCapabilities /** The implementation is able to store the data persistent in the system so that it does not get lost when the source application no longer exist. */ - const byte Persistant = 2; + /** @deprecated */ const byte Persistant = 2; + const byte Persistent = 2; }; diff --git a/offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl b/offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl index 1cb96db1ece8..32f8bf39db4e 100644 --- a/offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl +++ b/offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl @@ -46,7 +46,7 @@ published interface XSystemClipboard /** Provides the ability to render the complete clipboard content. This interface is only available if the method com::sun::star::datatransfer::clipboard::XClipboardEx::getRenderingCapabilities() - returns Persistant + returns Persistent */ [optional] interface XFlushableClipboard; diff --git a/offapi/type_reference/offapi.idl b/offapi/type_reference/offapi.idl index e796d59192e2..14f39fac820d 100644 --- a/offapi/type_reference/offapi.idl +++ b/offapi/type_reference/offapi.idl @@ -4312,7 +4312,8 @@ module com { }; published constants RenderingCapabilities { const byte Delayed = 1; - const byte Persistant = 2; + /** @deprecated */ const byte Persistant = 2; + const byte Persistent = 2; }; published interface XFlushableClipboard { interface ::com::sun::star::uno::XInterface; diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx index fc6dce12a3e5..33f44824691b 100644 --- a/sd/source/filter/eppt/eppt.cxx +++ b/sd/source/filter/eppt/eppt.cxx @@ -1319,7 +1319,7 @@ void PPTWriter::ImplWriteOLE( ) } } -// write PersistantTable and UserEditAtom +// write PersistentTable and UserEditAtom bool PPTWriter::ImplWriteAtomEnding() { |