Kaydet (Commit) bb296e46 authored tarafından Matteo Casalin's avatar Matteo Casalin

Minor simplification

Change-Id: I03a34a027a88c092efd3d10823928729d44b181b
üst 570d59cc
...@@ -406,7 +406,7 @@ uno::Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const ...@@ -406,7 +406,7 @@ uno::Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const
else else
pGlosGroup->SetBaseURL( OUString() ); pGlosGroup->SetBaseURL( OUString() );
sal_uInt16 nRet; sal_uInt16 nRet = USHRT_MAX;
if( pOnlyTxt ) if( pOnlyTxt )
nRet = pGlosGroup->PutText( sShortName, sLongName, *pOnlyTxt ); nRet = pGlosGroup->PutText( sShortName, sLongName, *pOnlyTxt );
else else
...@@ -419,11 +419,9 @@ uno::Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const ...@@ -419,11 +419,9 @@ uno::Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const
pGDoc->SetRedlineMode_intern((RedlineMode_t)( 0 )); pGDoc->SetRedlineMode_intern((RedlineMode_t)( 0 ));
nRet = pGlosGroup->PutDoc(); nRet = pGlosGroup->PutDoc();
} }
else
nRet = (sal_uInt16) -1;
} }
if(nRet == (sal_uInt16) -1 ) if (nRet == USHRT_MAX)
{ {
throw uno::RuntimeException(); throw uno::RuntimeException();
} }
......
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