Kaydet (Commit) e0f7e213 authored tarafından Luboš Luňák's avatar Luboš Luňák

the unknwon typo is surprisingly popular

Change-Id: Iffe25051c8357019521196f9a27065d6108ede47
üst e0ee0d44
...@@ -470,7 +470,7 @@ css::beans::Optional< css::uno::Any > Components::getExternalValue( ...@@ -470,7 +470,7 @@ css::beans::Optional< css::uno::Any > Components::getExternalValue(
throw css::uno::RuntimeException( throw css::uno::RuntimeException(
(rtl::OUString( (rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM( RTL_CONSTASCII_USTRINGPARAM(
"unknwon external value descriptor ID: ")) + "unknown external value descriptor ID: ")) +
e.Message), e.Message),
css::uno::Reference< css::uno::XInterface >()); css::uno::Reference< css::uno::XInterface >());
} catch (css::lang::WrappedTargetException & e) { } catch (css::lang::WrappedTargetException & e) {
......
...@@ -253,7 +253,7 @@ class FrameLoaderFactory : public ThreadHelpBase ...@@ -253,7 +253,7 @@ class FrameLoaderFactory : public ThreadHelpBase
@short check if searched frame loader exist in configuration @short check if searched frame loader exist in configuration
@descr Normaly nobody need these method realy (use getElementNames() in combination with getByName()). @descr Normaly nobody need these method realy (use getElementNames() in combination with getByName()).
We guarantee correctness of these mechanism. There is no reason to check for existing elements then ... We guarantee correctness of these mechanism. There is no reason to check for existing elements then ...
but if you have an unknwon name and has no fun to search it in returned sequence ... but if you have an unknown name and has no fun to search it in returned sequence ...
you can call these ... you can call these ...
@seealso method getByName() @seealso method getByName()
......
...@@ -76,7 +76,7 @@ class TargetHelper ...@@ -76,7 +76,7 @@ class TargetHelper
@note An empty target is similar to "_self"! @note An empty target is similar to "_self"!
@param sCheckTarget @param sCheckTarget
must be the unknwon target name, which should be checked. must be the unknown target name, which should be checked.
@param eSpecialTarget @param eSpecialTarget
represent the expected target. represent the expected target.
...@@ -100,7 +100,7 @@ class TargetHelper ...@@ -100,7 +100,7 @@ class TargetHelper
by definition inside the same frame tree (e.g. _beamer and by definition inside the same frame tree (e.g. _beamer and
OFFICE_HELP_TASK) its not a good idea to allow anything here :-) OFFICE_HELP_TASK) its not a good idea to allow anything here :-)
Of course we can't check unknwon names, which are not special ones. Of course we can't check unknown names, which are not special ones.
But we decide, that it's not allowed to use "_" as first sign But we decide, that it's not allowed to use "_" as first sign
(because we reserve this letter for our own purposes!) (because we reserve this letter for our own purposes!)
and the value must not a well known special target. and the value must not a well known special target.
......
...@@ -987,7 +987,7 @@ throw ( NoSuchElementException, RuntimeException ) ...@@ -987,7 +987,7 @@ throw ( NoSuchElementException, RuntimeException )
} }
else else
{ {
// variable in text but unknwon! // variable in text but unknown!
if ( bSubstRequired ) if ( bSubstRequired )
{ {
rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM( "Unknown variable found!" )); rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM( "Unknown variable found!" ));
......
...@@ -3112,7 +3112,7 @@ sal_Int32 AnimationImporter::importTargetElementContainer( const Atom* pAtom, An ...@@ -3112,7 +3112,7 @@ sal_Int32 AnimationImporter::importTargetElementContainer( const Atom* pAtom, An
} }
break; break;
default: default:
OSL_FAIL("unknwon atom inside ppt::AnimationImporter::importTargetElementContainer()!"); OSL_FAIL("unknown atom inside ppt::AnimationImporter::importTargetElementContainer()!");
break; break;
} }
...@@ -3143,7 +3143,7 @@ void AnimationImporter::importPropertySetContainer( const Atom* pAtom, PropertyS ...@@ -3143,7 +3143,7 @@ void AnimationImporter::importPropertySetContainer( const Atom* pAtom, PropertyS
} }
else else
{ {
OSL_FAIL("unknwon atom inside ppt::AnimationImporter::importPropertySetContainer()!"); OSL_FAIL("unknown atom inside ppt::AnimationImporter::importPropertySetContainer()!");
} }
pChildAtom = pAtom->findNextChildAtom( pChildAtom ); pChildAtom = pAtom->findNextChildAtom( pChildAtom );
......
...@@ -520,7 +520,7 @@ void CUPSManager::initialize() ...@@ -520,7 +520,7 @@ void CUPSManager::initialize()
m_aGlobalDefaults.m_nPDFDevice = 1; m_aGlobalDefaults.m_nPDFDevice = 1;
} }
// do not send include JobPatch; CUPS will insert that itself // do not send include JobPatch; CUPS will insert that itself
// TODO: currently unknwon which versions of CUPS insert JobPatches // TODO: currently unknown which versions of CUPS insert JobPatches
// so currently it is assumed CUPS = don't insert JobPatch files // so currently it is assumed CUPS = don't insert JobPatch files
m_bUseJobPatch = false; m_bUseJobPatch = false;
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
#define XMLERROR_UNKNOWN_ATTRIBUTE ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000a ) #define XMLERROR_UNKNOWN_ATTRIBUTE ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000a )
#define XMLERROR_UNKNOWN_ELEMENT ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000b ) #define XMLERROR_UNKNOWN_ELEMENT ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000b )
#define XMLERROR_UNKNOWN_CHARACTERS ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000c ) #define XMLERROR_UNKNOWN_CHARACTERS ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000c )
#define XMLERROR_UNKNWON_ROOT (XMLERROR_CLASS_FORMAT | 0x0000000d ) #define XMLERROR_UNKNOWN_ROOT (XMLERROR_CLASS_FORMAT | 0x0000000d )
// API errors: // API errors:
#define XMLERROR_STYLE_PROP_VALUE ( XMLERROR_CLASS_API | 0x00000001 ) #define XMLERROR_STYLE_PROP_VALUE ( XMLERROR_CLASS_API | 0x00000001 )
......
...@@ -612,7 +612,7 @@ void SAL_CALL SvXMLImport::startElement( const OUString& rName, ...@@ -612,7 +612,7 @@ void SAL_CALL SvXMLImport::startElement( const OUString& rName,
: rAttrName.copy( 6 ) ); : rAttrName.copy( 6 ) );
// Add namespace, but only if it is known. // Add namespace, but only if it is known.
sal_uInt16 nKey = mpNamespaceMap->AddIfKnown( aPrefix, rAttrValue ); sal_uInt16 nKey = mpNamespaceMap->AddIfKnown( aPrefix, rAttrValue );
// If namespace is unknwon, try to match a name with similar // If namespace is unknown, try to match a name with similar
// TC Id an version // TC Id an version
if( XML_NAMESPACE_UNKNOWN == nKey ) if( XML_NAMESPACE_UNKNOWN == nKey )
{ {
...@@ -664,7 +664,7 @@ void SAL_CALL SvXMLImport::startElement( const OUString& rName, ...@@ -664,7 +664,7 @@ void SAL_CALL SvXMLImport::startElement( const OUString& rName,
Sequence < OUString > aParams(1); Sequence < OUString > aParams(1);
aParams.getArray()[0] = rName; aParams.getArray()[0] = rName;
SetError( XMLERROR_FLAG_SEVERE|XMLERROR_UNKNWON_ROOT, SetError( XMLERROR_FLAG_SEVERE|XMLERROR_UNKNOWN_ROOT,
aParams, aMsg, xDummyLocator ); aParams, aMsg, xDummyLocator );
} }
} }
......
...@@ -266,7 +266,7 @@ void SAL_CALL XMLTransformerBase::startElement( const OUString& rName, ...@@ -266,7 +266,7 @@ void SAL_CALL XMLTransformerBase::startElement( const OUString& rName,
: rAttrName.copy( 6 ) ); : rAttrName.copy( 6 ) );
// Add namespace, but only if it is known. // Add namespace, but only if it is known.
sal_uInt16 nKey = m_pNamespaceMap->AddIfKnown( aPrefix, rAttrValue ); sal_uInt16 nKey = m_pNamespaceMap->AddIfKnown( aPrefix, rAttrValue );
// If namespace is unknwon, try to match a name with similar // If namespace is unknown, try to match a name with similar
// TC Id an version // TC Id an version
if( XML_NAMESPACE_UNKNOWN == nKey ) if( XML_NAMESPACE_UNKNOWN == nKey )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment