Without checked baggage if the flights are on time and you have your onward boarding pass then you should be OK. But a 10 minute delay will make it unlikely, and 15 minutes pretty much impossible.
Even at 40 minutes it's fairly unlikely checked baggage would make it, and any significant delay probably means it won't.